org.springframework.expression.spel.ast
Class OperatorDivide

java.lang.Object
  extended by org.antlr.runtime.tree.BaseTree
      extended by org.antlr.runtime.tree.CommonTree
          extended by org.springframework.expression.spel.ast.SpelNode
              extended by org.springframework.expression.spel.ast.Operator
                  extended by org.springframework.expression.spel.ast.OperatorDivide
All Implemented Interfaces:
java.io.Serializable, org.antlr.runtime.tree.Tree

public class OperatorDivide
extends Operator

Implements division operator

Author:
Andy Clement
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.antlr.runtime.tree.CommonTree
startIndex, stopIndex, token
 
Fields inherited from class org.antlr.runtime.tree.BaseTree
children
 
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
 
Constructor Summary
OperatorDivide(org.antlr.runtime.Token payload)
           
 
Method Summary
 java.lang.String getOperatorName()
           
 java.lang.Object getValue(ExpressionState state)
          Evaluate the expression node in the context of the supplied expression state and return the value.
 
Methods inherited from class org.springframework.expression.spel.ast.Operator
getLeftOperand, getRightOperand, isWritable, toStringAST
 
Methods inherited from class org.springframework.expression.spel.ast.SpelNode
getChild, getObjectClass, getTokenName, getValue, setValue
 
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getLine, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setTokenStartIndex, setTokenStopIndex, toString
 
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, dupTree, getChildCount, getFirstChildWithType, setChild, toStringTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperatorDivide

public OperatorDivide(org.antlr.runtime.Token payload)
Method Detail

getOperatorName

public java.lang.String getOperatorName()
Specified by:
getOperatorName in class Operator

getValue

public java.lang.Object getValue(ExpressionState state)
                          throws EvaluationException
Description copied from class: SpelNode
Evaluate the expression node in the context of the supplied expression state and return the value.

Specified by:
getValue in class SpelNode
Parameters:
state - the current expression state (includes the context)
Returns:
the value of this node evaluated against the specified state
Throws:
EvaluationException