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 TypegetReturnType()Retrusn the type of child expressionValueObjectgetValue()Returns value of child expression.protected voidvalidate(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:
getReturnTypein interfaceExpression- Overrides:
getReturnTypein 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:
validatein classUnaryOperatorExpression
-
-