public final class MapAccess extends Expression implements IMapAccessExpression
_type
_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULE
EMPTY_ARRAY
Constructor and Description |
---|
MapAccess() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate()
Evaluates the expression.
|
IType |
getComponentType() |
Expression |
getKeyExpression() |
IType |
getKeyType() |
static IType |
getKeyType(IType type) |
Expression |
getRootExpression() |
boolean |
isNullSafe() |
void |
setKeyExpression(Expression keyExpression) |
void |
setNullSafe(boolean bNullSafe) |
void |
setRootExpression(Expression rootExpression) |
static boolean |
supportsMapAccess(IType type) |
String |
toString()
Subclasses should return a String representing the parsed expression.
|
evaluate, getContextType, getReturnType, getType, getTypeImpl, isUnchecked, setType
addExceptionsFrom, 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, isCompileTimeConstant, isSuppressed, isSuppressed, isSynthetic, makeDoubleValue, makeFloatValue, makeInteger, makeLong, removeParseException, removeParseWarning, removeParseWarningRecursively, setGosuProgram, setLineNum, setLocation, setParent, setSynthetic, shouldClearParseInfo, visit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
evaluate, getContextType, isUnchecked
addExceptionsFrom, 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, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParent, visit
public Expression getRootExpression()
getRootExpression
in interface IMapAccessExpression
public void setRootExpression(Expression rootExpression)
public Expression getKeyExpression()
getKeyExpression
in interface IMapAccessExpression
public void setKeyExpression(Expression keyExpression)
public boolean isNullSafe()
isNullSafe
in interface IExpression
isNullSafe
in class Expression
public void setNullSafe(boolean bNullSafe)
public Object evaluate()
evaluate
in interface IExpression
evaluate
in class Expression
public String toString()
Expression
toString
in class Expression
public static boolean supportsMapAccess(IType type)
public IType getComponentType()
getComponentType
in interface IMapAccessExpression
public IType getKeyType()
getKeyType
in interface IMapAccessExpression
Copyright © 2021. All rights reserved.