Class Operation
java.lang.Object
com.e1c.langtool.history.db.query.Operation
- All Implemented Interfaces:
IExpression,IOperation
Immutable and thread-safe implementation of
IOperation.
Note that this class overrides equals(Object) with implementation
which recursively compares all child for equality. As opposed to @equals method
hashCode() calculates hashes only for self and both left and right expressions.
It's highly recommended to use special builders like ExpressionBuilder
to create expressions based on operations.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.langtool.history.db.query.IOperation
IOperation.BoolOp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IExpressionVisitor visitor) Accepts the given expression visitor.booleangetLeft()Returns the left sub-expression of this operation tree node.Returns the logical operator applicable to the expressions.getRight()Returns the right sub-expression of this operation tree node.inthashCode()
-
Constructor Details
-
Operation
-
-
Method Details
-
accept
Description copied from interface:IExpressionAccepts the given expression visitor.The visitor's
visitmethod is called with this expression.- Specified by:
acceptin interfaceIExpression- Parameters:
visitor- the visitor
-
getLeft
Description copied from interface:IOperationReturns the left sub-expression of this operation tree node.- Specified by:
getLeftin interfaceIOperation- Returns:
- the left expression
-
getRight
Description copied from interface:IOperationReturns the right sub-expression of this operation tree node.- Specified by:
getRightin interfaceIOperation- Returns:
- the right expression
-
getOperator
Description copied from interface:IOperationReturns the logical operator applicable to the expressions.- Specified by:
getOperatorin interfaceIOperation- Returns:
- the logical operator
-
hashCode
public int hashCode() -
equals
-