Class DivideExpression

    • Method Detail

      • evaluate

        public Value evaluate​(Map<String,​Object> variables)
                       throws EvaluationException
        Description copied from interface: Expression
        Evaluates this expression using the specified variable values. The variable map may be modified as a result of an "assign" expression.
        Specified by:
        evaluate in interface Expression
        Parameters:
        variables - the variable values (can be null)
        Returns:
        the value of the expression
        Throws:
        EvaluationException - if the expression can't be evaluted with the specified variables
      • getChildren

        public List<Expression> getChildren()
        Description copied from interface: Expression
        Returns the child expressions of this expression.
        Specified by:
        getChildren in interface Expression
        Returns:
        the child expressions
      • getDescendants

        public List<Expression> getDescendants()
        Description copied from interface: Expression
        Returns all descendant expressions of this expression.
        Specified by:
        getDescendants in interface Expression
        Returns:
        the descendant expressions
      • getVariableNames

        public Set<String> getVariableNames()
        Description copied from interface: Expression
        Returns all variable names that occur in this expression and its descendants.
        Specified by:
        getVariableNames in interface Expression
        Returns:
        the variable names