|
Eclipse CDT 7.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 char[] |
createNameForAnonymous(IBinding binding)
|
static boolean |
functionTakesParameters(IFunction function)
|
static String |
getArgumentListString(ICPPTemplateArgument[] args,
boolean normalize)
Returns a comma-separated list of the string representations of the arguments, enclosed in angle brackets. |
static String |
getArgumentString(ICPPTemplateArgument arg,
boolean normalize)
Returns a string representation for an template argument. |
static String |
getNodeType(IASTNode node)
For testing purposes, only. |
static String |
getParameterTypeString(IFunctionType type)
Returns a string representation for the parameters of the given function type. |
static String[] |
getParameterTypeStringArray(IFunctionType type)
Returns an array of normalized string representations for the parameter types of the given function type. |
static String |
getType(IASTDeclarator decltor)
For testing purposes, only. |
static String |
getType(IASTTypeId typeId)
Returns the type representation of the IASTTypeId as a String. |
static String |
getType(IType type)
Returns the normalized string representation of the type. |
static String |
getType(IType type,
boolean normalize)
Returns a string representation of a type. |
static String |
getTypeListString(IType[] types)
Returns a string representation for the type array. |
static String |
getTypeListString(IType[] types,
boolean normalize)
Returns a String representation of the type array as a comma-separated list. |
static boolean |
isConst(IType type)
Deprecated. don't use it does something strange |
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)
public static boolean functionTakesParameters(IFunction function) throws DOMException
DOMException
public static String getTypeListString(IType[] types)
getTypeListString(IType[], boolean)
public static String getTypeListString(IType[] types, boolean normalize)
types
-
public static String getArgumentListString(ICPPTemplateArgument[] args, boolean normalize)
normalize
- indicates whether normalization shall be performedpublic static String getArgumentString(ICPPTemplateArgument arg, boolean normalize)
normalize
- indicates whether normalization shall be performedpublic static String[] getParameterTypeStringArray(IFunctionType type)
getType(IType, boolean)
public static String getType(IType type)
getType(IType, boolean)
public static String getType(IType type, boolean normalize)
type
- a type to compute the string representation for.normalize
- whether or not normalization should be performed.
public static String getType(IASTDeclarator decltor)
public static String getNodeType(IASTNode node)
public static String getType(IASTTypeId typeId)
typeId
-
@Deprecated public static boolean isConst(IType type)
public static char[] createNameForAnonymous(IBinding binding)
|
Eclipse CDT 7.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |