Package org.daisy.dotify.api.obfl
Interface Expression
-
public interface Expression
Provides an interface for OBFL-expressions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
evaluate(String expr)
Evaluate is the method to use when evaluating an expression.void
removeAllVariables()
Removes all global variablesvoid
removeVariable(String key)
Removes a previously set variablevoid
setVariable(String key, Object value)
Sets a globally accessible variable for this instance
-
-
-
Method Detail
-
setVariable
void setVariable(String key, Object value)
Sets a globally accessible variable for this instance- Parameters:
key
- the variable namevalue
- the value
-
removeVariable
void removeVariable(String key)
Removes a previously set variable- Parameters:
key
- the variable name
-
removeAllVariables
void removeAllVariables()
Removes all global variables
-
-