public class TypeLiteral extends Literal implements ITypeLiteralExpression
IGosuParser_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
TypeLiteral() |
TypeLiteral(IType type) |
TypeLiteral(IType type,
boolean ignoreTypeDeprecation) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
IType |
evaluate() |
Expression |
getPackageExpression()
This expression is of NamespaceType.
|
MetaType |
getType()
Returns this Expression's IType.
|
protected MetaType |
getTypeImpl() |
boolean |
isCompileTimeConstant() |
void |
setPackageExpression(Expression packageExpr) |
void |
setParameterTypes(IType[] types) |
void |
setType(IType type)
Sets this Expression's IType.
|
String |
toString()
Subclasses should return a String representing the parsed expression.
|
evaluate, getContextType, getReturnType, isNullSafe, isUncheckedaddExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findDeclaringStatement, findLineNumberOfDeclaration, findRootParsedElement, getAnnotations, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getQualifyingEnclosingTypeInfo, getTokens, hasImmediateParseIssue, hasImmediateParseWarning, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, initEmptyParseTree, initLocation, isSuppressed, isSuppressed, isSynthetic, makeDoubleValue, makeFloatValue, makeInteger, makeLong, removeParseException, removeParseWarning, removeParseWarningRecursively, setGosuProgram, setLineNum, setLocation, setParent, setSynthetic, shouldClearParseInfo, visitequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevaluate, getContextType, isNullSafe, isUncheckedaddExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isSuppressed, isSynthetic, setLocation, setParent, visitpublic TypeLiteral(IType type, boolean ignoreTypeDeprecation)
public TypeLiteral(IType type)
public TypeLiteral()
public Expression getPackageExpression()
getPackageExpression in interface ITypeLiteralExpressionpublic void setPackageExpression(Expression packageExpr)
public void setType(IType type)
ExpressionsetType in interface ITypeLiteralExpressionsetType in class Expressionpublic void setParameterTypes(IType[] types)
types - If this is a parameterized type, these are the parameter types.public boolean isCompileTimeConstant()
isCompileTimeConstant in interface IParsedElementisCompileTimeConstant in class ParsedElementpublic IType evaluate()
evaluate in interface IExpressionevaluate in class Expressionpublic String toString()
ExpressiontoString in class Expressionpublic MetaType getType()
ExpressiongetType in interface ITypeLiteralExpressiongetType in interface IHasTypegetType in class Expressionprotected MetaType getTypeImpl()
getTypeImpl in class ExpressionCopyright © 2019. All rights reserved.