Class BinaryExpNode
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.query.node.OperatorNode
-
- org.linuxforhealth.fhir.database.utils.query.node.BinaryExpNode
-
- All Implemented Interfaces:
ExpNode
- Direct Known Subclasses:
AdditiveExpNode,AndExpNode,BetweenExpNode,ComparativeExpNode,EqualityExpNode,EscapeExpNode,LikeExpNode,MultiplicativeExpNode,OrExpNode
public abstract class BinaryExpNode extends OperatorNode
A binary expression for addition, multiplication, comparison etc
-
-
Constructor Summary
Constructors Constructor Description BinaryExpNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpNodegetLeft()ExpNodegetRight()voidpopOperands(java.util.Stack<ExpNode> stack)Read the operands from the stackvoidsetLeft(ExpNode left)voidsetRight(ExpNode right)java.lang.StringtoString()-
Methods inherited from class org.linuxforhealth.fhir.database.utils.query.node.OperatorNode
isOperator
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.linuxforhealth.fhir.database.utils.query.node.ExpNode
isLeftParen, isOperand, isRightParen, precedence, visit
-
-
-
-
Method Detail
-
getLeft
public ExpNode getLeft()
- Returns:
- the left
-
setLeft
public void setLeft(ExpNode left)
- Parameters:
left- the left to set
-
getRight
public ExpNode getRight()
- Returns:
- the right
-
setRight
public void setRight(ExpNode right)
- Parameters:
right- the right to set
-
popOperands
public void popOperands(java.util.Stack<ExpNode> stack)
Description copied from interface:ExpNodeRead the operands from the stack
-
toString
public java.lang.String toString()
- Overrides:
toStringin classOperatorNode
-
-