Class BooleanExpression
- java.lang.Object
-
- org.vedantatree.expressionoasis.expressions.BooleanExpression
-
- All Implemented Interfaces:
Expression
public class BooleanExpression extends Object implements Expression
This class expression is used to make the boolean value expression It gives the boolean value.
-
-
Constructor Summary
Constructors Constructor Description BooleanExpression()
-
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 boolean type.ValueObject
getValue()
Gets the value object for boolean value.void
initialize(ExpressionContext expressionContext, Object objectInfo, boolean validate)
Initializes the boolean value object.String
toString()
void
uninitialize(ExpressionContext expressionContext)
Uninitaizes the expression
-
-
-
Method Detail
-
getValue
public ValueObject getValue() throws ExpressionEngineException
Gets the value object for boolean 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 boolean 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 boolean 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)
-
-