public final class ArrayAccess extends Expression implements IArrayAccessExpression
array-access <array-reference> [ <member> ] array-reference <expression> member <array-access> <expression>
IGosuParser_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
ArrayAccess() |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate()
Evaluates the expression.
|
static Object |
getArrayElement(Object obj,
int iIndex,
boolean bNullSafe) |
IType |
getComponentType() |
static Object |
getElementFromIterator(Iterator iter,
int iIndex) |
Expression |
getMemberExpression() |
Expression |
getRootExpression() |
static IType |
getTypeToAutoInsert(IExpression rootExpression) |
boolean |
isNullSafe() |
static boolean |
needsAutoinsert(ArrayAccess arrayAccess) |
void |
setMemberExpression(Expression memberExpression) |
void |
setNullSafe(boolean bNullSafe) |
void |
setRootExpression(Expression rootExpression) |
static boolean |
supportsArrayAccess(IType type) |
String |
toString()
Subclasses should return a String representing the parsed expression.
|
evaluate, getContextType, getReturnType, getType, getTypeImpl, isUnchecked, setTypeaddExceptionsFrom, 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, shouldClearParseInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevaluate, getContextType, 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, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParentpublic Expression getRootExpression()
getRootExpression in interface IArrayAccessExpressionpublic void setRootExpression(Expression rootExpression)
public Expression getMemberExpression()
getMemberExpression in interface IArrayAccessExpressionpublic void setMemberExpression(Expression memberExpression)
public boolean isNullSafe()
isNullSafe in interface IExpressionisNullSafe in class Expressionpublic void setNullSafe(boolean bNullSafe)
public Object evaluate()
evaluate in interface IExpressionevaluate in class Expressionpublic static IType getTypeToAutoInsert(IExpression rootExpression)
public static boolean needsAutoinsert(ArrayAccess arrayAccess)
public IType getComponentType()
getComponentType in interface IArrayAccessExpressionpublic String toString()
ExpressiontoString in class Expressionpublic static boolean supportsArrayAccess(IType type)
Copyright © 2019. All rights reserved.