public interface Expression
Value
instance for further processing.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.
|
void |
initialize(DrawingStepHandler stepHandler)
Initialize the given step handler.
|
int |
requiredArguments()
Returns the number of required arguments to evaluate this expression.
|
int requiredArguments()
java.util.Optional<Value> evaluate(Value value, Value... args)
requiredArguments()
for the number
of required arguments to be supplied.value
- The value to evaluate the expression for.args
- The array of arguments. There must be at least requiredArguments()
arguments
given. Additional arguments will be ignored.java.lang.IllegalArgumentException
- If the number of arguments supplied is smaller than requiredArguments()
.java.lang.String describe(Value value, Value... args)
value
- The value which would be given to the evaluate(Value, Value...)
method.args
- The array of arguments which would be given to the evaluate(Value, Value...)
method.void initialize(DrawingStepHandler stepHandler)
DSLUpdater
instance
used for updates to the blacklist, etc.stepHandler
- The step handler to be initialized.