Package org.daisy.dotify.api.obfl
Interface Expression
-
public interface ExpressionProvides an interface for OBFL-expressions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectevaluate(String expr)Evaluate is the method to use when evaluating an expression.voidremoveAllVariables()Removes all global variables.voidremoveVariable(String key)Removes a previously set variable.voidsetVariable(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.
-
-