Class DivideExpression
- java.lang.Object
-
- org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
-
- org.vedantatree.expressionoasis.expressions.arithmatic.DivideExpression
-
- All Implemented Interfaces:
Expression
public class DivideExpression extends BinaryOperatorExpression
This is the class expression which performs the divide operations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
BinaryOperatorExpression.TypePair
-
-
Field Summary
-
Fields inherited from class org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
leftOperandExpression, rightOperandExpression
-
-
Constructor Summary
Constructors Constructor Description DivideExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getReturnType()
Gets the return type of the expression.ValueObject
getValue()
Performs the divide operation.-
Methods inherited from class org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
accept, addTypePair, createTypePair, getLeftOperandExpression, getRightOperandExpression, initialize, toString, uninitialize, validate
-
-
-
-
Method Detail
-
getReturnType
public Type getReturnType() throws ExpressionEngineException
Description copied from interface:Expression
Gets the return type of the expression.- Specified by:
getReturnType
in interfaceExpression
- Overrides:
getReturnType
in classBinaryOperatorExpression
- Returns:
- the type of expression
- Throws:
ExpressionEngineException
- If there is any problem during execution- See Also:
Expression.getReturnType()
-
getValue
public ValueObject getValue() throws ExpressionEngineException
Performs the divide operation.- Specified by:
getValue
in interfaceExpression
- Overrides:
getValue
in classBinaryOperatorExpression
- Returns:
- the value of expression (after expression evaluation)
- Throws:
ExpressionEngineException
- if there is any problem during execution- See Also:
Expression.getValue()
-
-