public class VariableExpression extends Expression<Object>
Constructor and Description |
---|
VariableExpression(KeyPath keyPath) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Object namespace)
Evaluates the expression.
|
protected void |
getArguments(List<KeyPath> arguments)
Populates a list of arguments to this expression.
|
KeyPath |
getKeyPath()
Returns the path to the variable associated with this expression.
|
boolean |
isDefined(Object namespace)
Tests whether the expression is defined.
|
boolean |
isLValue()
Tests whether the expression represents an l-value (i.e.
|
String |
toString() |
void |
update(Object namespace,
Object value)
Updates the expression value.
|
add, add, add, add, and, and, and, and, divide, divide, divide, divide, equalTo, equalTo, equalTo, equalTo, get, get, getArguments, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, isDefined, isDefined, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, modulo, modulo, modulo, modulo, multiply, multiply, multiply, multiply, negate, negate, not, not, notEqualTo, notEqualTo, notEqualTo, notEqualTo, or, or, or, or, set, set, subtract, subtract, subtract, subtract, valueOf
public VariableExpression(KeyPath keyPath)
public KeyPath getKeyPath()
public Object evaluate(Object namespace)
Expression
evaluate
in class Expression<Object>
namespace
- The namespace against which the expression will be evaluated.public void update(Object namespace, Object value)
Expression
update
in class Expression<Object>
namespace
- The namespace against which the expression will be evaluated.value
- The value to assign to the expression.public boolean isDefined(Object namespace)
Expression
isDefined
in class Expression<Object>
namespace
- The namespace against which the expression will be evaluated.public boolean isLValue()
Expression
isLValue
in class Expression<Object>
protected void getArguments(List<KeyPath> arguments)
Expression
getArguments
in class Expression<Object>
Copyright © 2020. All rights reserved.