Class DecimalExpression
- java.lang.Object
-
- org.vedantatree.expressionoasis.expressions.DecimalExpression
-
- All Implemented Interfaces:
Expression
public class DecimalExpression extends Object implements Expression
This class expression is used to make the decimal value expression It gives the decimal value.
-
-
Constructor Summary
Constructors Constructor Description DecimalExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ExpressionVisitor visitor)
Allows an expression visitor to visit this expression and it's sub-expressions (implements Visitor design pattern).Type
getReturnType()
Returns the double type.ValueObject
getValue()
Gets the value object for decimal value.void
initialize(ExpressionContext expressionContext, Object objectInfo, boolean validate)
Initializes the double value object.String
toString()
void
uninitialize(ExpressionContext expressionContext)
Uninitaizes the expression
-
-
-
Method Detail
-
getValue
public ValueObject getValue() throws ExpressionEngineException
Gets the value object for decimal value.- Specified by:
getValue
in interfaceExpression
- Returns:
- the value of expression (after expression evaluation)
- Throws:
ExpressionEngineException
- if there is any problem during execution- See Also:
Expression.getValue()
-
getReturnType
public Type getReturnType() throws ExpressionEngineException
Returns the double type.- Specified by:
getReturnType
in interfaceExpression
- Returns:
- the type of expression
- Throws:
ExpressionEngineException
- If there is any problem during execution- See Also:
Expression.getReturnType()
-
initialize
public void initialize(ExpressionContext expressionContext, Object objectInfo, boolean validate) throws ExpressionEngineException
Initializes the double value object.- Specified by:
initialize
in interfaceExpression
- Parameters:
expressionContext
- contextual information, may help in initializationobjectInfo
- for example, sub expressions and identifiers- Throws:
ExpressionEngineException
- if there is any problem during execution- See Also:
org.vedantatree.expressionoasis.expressions.Expression#initialize(org.vedantatree.expressionoasis.ExpressionContext, java.lang.Object)
-
uninitialize
public void uninitialize(ExpressionContext expressionContext)
Uninitaizes the expression- Specified by:
uninitialize
in interfaceExpression
- Parameters:
expressionContext
- contextual information, may help in un-initialization- See Also:
Expression.uninitialize(org.vedantatree.expressionoasis.ExpressionContext)
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
accept
public void accept(ExpressionVisitor visitor)
Allows an expression visitor to visit this expression and it's sub-expressions (implements Visitor design pattern).- Specified by:
accept
in interfaceExpression
- Parameters:
visitor
- a visitor object that this expression must visit when accept is called.- See Also:
Expression.accept(org.vedantatree.expressionoasis.ExpressionVisitor)
-
-