public final class VariableExpression extends AssignableExpression
| Constructor and Description |
|---|
VariableExpression(ASTInfo info,
VariableInfo varInfo) |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected Object |
basicInterpret(Interpreter interpreter,
InterpreterStackTrace stackTrace)
Interpret expression.
|
String |
getName()
Returns the variable name.
|
String |
getNamespaceName()
Returns the namespace name of the variable.
|
VariableInfo |
getVariableInfo()
Returns the variable-info.
|
protected Object |
interpretCompoundAssignment(Operation operation,
Expression arg,
Interpreter interpreter,
InterpreterStackTrace stackTrace) |
boolean |
isModule()
Returns the module flag.
|
boolean |
isReadOnly()
Returns true if this is a read only variable
|
void |
setValue(Object value,
Namespace namespace,
InterpreterStackTrace stackTrace,
ExpressionOrigin origin)
Assign a value into the assignable (e.g.
|
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, getType, interpret, interpretInCurrentNamespace, isCreatingNonModuleContextObjects, isParseTimeConstant, requiresNewNamespace, setCompiled, showInFullText, showInSurroundingText, showInText, toExpressionsgetFullText, getLine, getNodeText, getText, toStringcontains, getBeginIndex, getEndIndex, getLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFullText, getLine, getNodeText, getTextcontains, getBeginIndex, getEndIndex, getLengthpublic VariableExpression(ASTInfo info, VariableInfo varInfo)
info - varInfo - NullPointerException - if the varInfo is nullpublic String getNamespaceName()
public boolean isModule()
public String getName()
public boolean isReadOnly()
public VariableInfo getVariableInfo()
public <T,E extends Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends Throwable
Expressionaccept in class ExpressionEE extends Throwableprotected Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
ExpressionbasicInterpret in class ExpressionErrorExceptionpublic void setValue(Object value, Namespace namespace, InterpreterStackTrace stackTrace, ExpressionOrigin origin) throws ErrorException
AssignableExpressionsetValue in class AssignableExpressionErrorExceptionprotected Object interpretCompoundAssignment(Operation operation, Expression arg, Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
interpretCompoundAssignment in class AssignableExpressionErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.