public class JavaFieldsExpression extends java.lang.Object implements Expression
| Constructor and Description |
|---|
JavaFieldsExpression(java.util.List<java.lang.String> fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
describe(Value value,
Value... args)
Describe this expression in a human-readable way.
|
java.util.Optional<Value> |
evaluate(Value value,
Value... args)
Evaluates the given expression for the given value and the array of arguments.
|
static java.util.List<java.lang.String> |
getAllFieldNames(Value value) |
void |
initialize(DrawingStepHandler stepHandler)
Initialize the given step handler.
|
int |
requiredArguments()
Returns the number of required arguments to evaluate this expression.
|
public JavaFieldsExpression(java.util.List<java.lang.String> fields)
public static java.util.List<java.lang.String> getAllFieldNames(Value value)
public int requiredArguments()
ExpressionrequiredArguments in interface Expressionpublic java.util.Optional<Value> evaluate(Value value, Value... args)
ExpressionExpression.requiredArguments() for the number
of required arguments to be supplied.evaluate in interface Expressionvalue - The value to evaluate the expression for.args - The array of arguments. There must be at least Expression.requiredArguments() arguments
given. Additional arguments will be ignored.public java.lang.String describe(Value value, Value... args)
Expressiondescribe in interface Expressionvalue - The value which would be given to the Expression.evaluate(Value, Value...) method.args - The array of arguments which would be given to the Expression.evaluate(Value, Value...) method.public void initialize(DrawingStepHandler stepHandler)
ExpressionDSLUpdater instance
used for updates to the blacklist, etc.initialize in interface ExpressionstepHandler - The step handler to be initialized.