|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.core.dom.ast.ASTTypeUtil
public class ASTTypeUtil
This is a utility class to help convert AST elements to Strings corresponding to the AST element's type.
Constructor Summary | |
---|---|
ASTTypeUtil()
|
Method Summary | |
---|---|
static String |
getNodeType(IASTNode node)
Return's the String representation of a node's type (if available). |
static String |
getParameterTypeString(IFunctionType type)
Returns a String represnetation of the parameter type of an IFunctionType. |
static String[] |
getParameterTypeStringArray(IFunctionType type)
Returns String[] corresponding to the types of the parameters for the IFunctionType. |
static String |
getType(IASTDeclarator decltor)
Returns the type representation of the declarator (including parameters) as a String. |
static String |
getType(IASTTypeId typeId)
Retuns the type representation of the IASTTypeId as a String. |
static String |
getType(IType type)
Returns the type represntation of the IType as a String. |
static boolean |
isConst(IType type)
This can be used to invoke the IType's isConst() if it has an isConst() method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASTTypeUtil()
Method Detail |
---|
public static String getParameterTypeString(IFunctionType type)
type
-
public static String[] getParameterTypeStringArray(IFunctionType type)
type
-
public static String getType(IType type)
type
-
public static String getType(IASTDeclarator decltor)
decltor
-
public static String getNodeType(IASTNode node)
node
-
public static String getType(IASTTypeId typeId)
typeId
-
public static boolean isConst(IType type)
type
-
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |