Interface Expression


  • public interface Expression
    Provides an interface for OBFL-expressions.
    • Method Detail

      • setVariable

        void setVariable​(String key,
                         Object value)
        Sets a globally accessible variable for this instance.
        Parameters:
        key - the variable name
        value - the value
      • removeVariable

        void removeVariable​(String key)
        Removes a previously set variable.
        Parameters:
        key - the variable name
      • removeAllVariables

        void removeAllVariables()
        Removes all global variables.
      • evaluate

        Object evaluate​(String expr)
        Evaluate is the method to use when evaluating an expression.
        Parameters:
        expr - the expression to evaluate
        Returns:
        returns the evaluation result