public class Variable
extends java.lang.Object
Variable is has the following EBNF form:
variable = identifier ["." variable | "[" expression "]"]
See StatementParser for the full grammar.| Constructor and Description |
|---|
Variable(Identifier identifier,
Function function,
Expression accessExpression,
Variable dotVariable) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(Configuration config,
Scope scope) |
java.lang.String |
toString()
Gets a string representation of the
Variable, useful for debugging. |
public Variable(Identifier identifier, @Nullable Function function, @Nullable Expression accessExpression, @Nullable Variable dotVariable)
public java.lang.Object evaluate(Configuration config, Scope scope) throws CarrotException
CarrotExceptionpublic java.lang.String toString()
Variable, useful for debugging.toString in class java.lang.Object