Class ParanthesisExpression
- java.lang.Object
-
- org.vedantatree.expressionoasis.expressions.UnaryOperatorExpression
-
- org.vedantatree.expressionoasis.expressions.arithmatic.ParanthesisExpression
-
- All Implemented Interfaces:
Expression
public class ParanthesisExpression extends UnaryOperatorExpression
This expression represents the parenthesis for other child expression
-
-
Constructor Summary
Constructors Constructor Description ParanthesisExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getReturnType()
Retrusn the type of child expressionValueObject
getValue()
Returns value of child expression.protected void
validate(ExpressionContext expressionContext)
Do nothing.-
Methods inherited from class org.vedantatree.expressionoasis.expressions.UnaryOperatorExpression
accept, addTypePair, getOperandExpression, initialize, toString, uninitialize
-
-
-
-
Method Detail
-
getValue
public ValueObject getValue() throws ExpressionEngineException
Returns value of child expression.- 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
Retrusn the type of child expression- Specified by:
getReturnType
in interfaceExpression
- Overrides:
getReturnType
in classUnaryOperatorExpression
- Returns:
- the type of expression
- Throws:
ExpressionEngineException
- If there is any problem during execution- See Also:
Expression.getReturnType()
-
validate
protected void validate(ExpressionContext expressionContext)
Do nothing.- Overrides:
validate
in classUnaryOperatorExpression
-
-