public final class ReferenceExpression extends ContextReferencingExpression
| Constructor and Description |
|---|
ReferenceExpression(ASTInfo info,
AssignableExpression expression,
boolean isAssignment) |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends java.lang.Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected java.lang.Object |
basicInterpret(Interpreter interpreter,
InterpreterStackTrace stackTrace)
Interpret expression.
|
AssignableExpression |
getExpression()
Returns the referenced expression.
|
java.lang.String |
getNodeText()
Returns the text of this node.
|
ReferenceType |
getType()
Returns the return type.
|
boolean |
isAssignment()
Returns true if it is reference in assignment.
|
boolean |
isReferencingNonModuleContext()
Returns
true if the closure is referencing
non-module variables from outside scope and or methods (if
it is in a method body). |
static boolean |
validExpression(Expression expression)
Returns true if given expression can be referenced.
|
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, interpret, interpretInCurrentNamespace, isCreatingNonModuleContextObjects, isParseTimeConstant, requiresNewNamespace, setCompiled, showInFullText, showInSurroundingText, showInText, toExpressionsgetFullText, getLine, getText, toStringcontains, getBeginIndex, getEndIndex, getLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFullText, getLine, getTextcontains, getBeginIndex, getEndIndex, getLengthpublic ReferenceExpression(ASTInfo info, AssignableExpression expression, boolean isAssignment)
info - expression - isAssignment - public ReferenceType getType()
ExpressiongetType in class Expressionpublic AssignableExpression getExpression()
public boolean isAssignment()
public boolean isReferencingNonModuleContext()
ContextReferencingExpressiontrue if the closure is referencing
non-module variables from outside scope and or methods (if
it is in a method body).isReferencingNonModuleContext in class ContextReferencingExpressiontrue if the closure is referencing
enclosing non-module contextpublic static boolean validExpression(Expression expression)
expression - public java.lang.String getNodeText()
ASTNodegetNodeText in interface ASTNodegetNodeText in class ASTNodeImplpublic <T,E extends java.lang.Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends java.lang.Throwable
Expressionaccept in class ExpressionEE extends java.lang.Throwableprotected java.lang.Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace)
ExpressionbasicInterpret in class ExpressionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.