public final class UnaryExpression<U,T> extends Expression<T>
| Constructor and Description |
|---|
UnaryExpression(Expression<U> operand,
Function<U,T> evaluator) |
| Modifier and Type | Method and Description |
|---|---|
T |
evaluate(Object namespace)
Evaluates the expression.
|
protected void |
getArguments(List<KeyPath> arguments)
Populates a list of arguments to this expression.
|
boolean |
isDefined(Object namespace)
Tests whether the expression is defined.
|
boolean |
isLValue()
Tests whether the expression represents an l-value (i.e.
|
void |
update(Object namespace,
T 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, valueOfpublic UnaryExpression(Expression<U> operand, Function<U,T> evaluator)
public T evaluate(Object namespace)
Expressionevaluate in class Expression<T>namespace - The namespace against which the expression will be evaluated.public void update(Object namespace, T value)
Expressionupdate in class Expression<T>namespace - The namespace against which the expression will be evaluated.value - The value to assign to the expression.public boolean isDefined(Object namespace)
ExpressionisDefined in class Expression<T>namespace - The namespace against which the expression will be evaluated.public boolean isLValue()
ExpressionisLValue in class Expression<T>protected void getArguments(List<KeyPath> arguments)
ExpressiongetArguments in class Expression<T>Copyright © 2025. All rights reserved.