Class PropertyExpression
- java.lang.Object
-
- org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
-
- org.vedantatree.expressionoasis.expressions.property.PropertyExpression
-
- All Implemented Interfaces:
Expression
public class PropertyExpression extends BinaryOperatorExpression
This is the property expression to access the property of any java object.
-
-
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 PropertyExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getReturnType()
Gets the return type of the expression.ValueObject
getValue()
Executes and returns the value of this expression.void
setValue(Object value)
Sets the valueprotected void
validate(ExpressionContext expressionContext)
Default validation is not required.-
Methods inherited from class org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
accept, addTypePair, createTypePair, getLeftOperandExpression, getRightOperandExpression, initialize, toString, uninitialize
-
-
-
-
Method Detail
-
getValue
public ValueObject getValue() throws ExpressionEngineException
Description copied from interface:Expression
Executes and returns the value of this expression. If expression is not at node level, it will further evaluate its related expression which may represents operands or operators and return the final outcome.- 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()
-
setValue
public void setValue(Object value) throws ExpressionEngineException
Sets the value- Parameters:
value
-- Throws:
ExpressionEngineException
-
validate
protected void validate(ExpressionContext expressionContext) throws ExpressionEngineException
Default validation is not required.- Overrides:
validate
in classBinaryOperatorExpression
- Throws:
ExpressionEngineException
- See Also:
org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression#validate()
-
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()
-
-