Class BinaryImpl
java.lang.Object
org.apache.olingo.server.core.uri.queryoption.expression.BinaryImpl
- All Implemented Interfaces:
Binary,Expression,VisitableExpression
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryImpl(Expression left, BinaryOperatorKind operator, List<Expression> right, EdmType type) BinaryImpl(Expression left, BinaryOperatorKind operator, Expression right, EdmType type) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) MethodVisitableExpression.accept(ExpressionVisitor)is called when traversing the expression tree.getType()toString()
-
Constructor Details
-
BinaryImpl
-
BinaryImpl
public BinaryImpl(Expression left, BinaryOperatorKind operator, List<Expression> right, EdmType type)
-
-
Method Details
-
getOperator
- Specified by:
getOperatorin interfaceBinary- Returns:
- binary operator kind
- See Also:
-
getLeftOperand
- Specified by:
getLeftOperandin interfaceBinary- Returns:
- Expression sub tree of the left operand
-
getRightOperand
- Specified by:
getRightOperandin interfaceBinary- Returns:
- Expression sub tree of the right operand
-
getType
-
accept
public <T> T accept(ExpressionVisitor<T> visitor) throws ExpressionVisitException, ODataApplicationException Description copied from interface:VisitableExpressionMethodVisitableExpression.accept(ExpressionVisitor)is called when traversing the expression tree. This method is invoked on each expression used as node in an expression tree. The implementations should behave as follows:- Call accept on all sub nodes and store the returned Objects which are of the generic type T
- Call the appropriate method on the
ExpressionVisitorinstance and provide the stored return objects to that instance- Return the object which should be passed to the processing algorithm of the parent expression node
- Specified by:
acceptin interfaceVisitableExpression- Parameters:
visitor- Visitor object (implementingExpressionVisitor) whose methods are called during traversing a expression node of the expression tree.- Returns:
- Object of type T which should be passed to the processing algorithm of the parent expression node
- Throws:
ExpressionVisitException- Exception occurred in the OData library while traversing the treeODataApplicationException- Exception thrown by the application who implemented the visitor
-
toString
-
getExpressions
- Specified by:
getExpressionsin interfaceBinary- Returns:
- list of expressions of the right operand
-