Class BindMarkerNode
- java.lang.Object
-
- com.ibm.fhir.database.utils.query.node.BindMarkerNode
-
- All Implemented Interfaces:
ExpNode
- Direct Known Subclasses:
BigDecimalBindMarkerNode,DoubleBindMarkerNode,InstantBindMarkerNode,IntegerBindMarkerNode,LongBindMarkerNode,StringBindMarkerNode
public abstract class BindMarkerNode extends java.lang.Object implements ExpNode
Represents a bind variable marker (?) in a SQL expression
-
-
Constructor Summary
Constructors Constructor Description BindMarkerNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleancheckTypeAndValue(java.lang.Object expectedValue)Check that the value represented by this bind marker equals the type and value of the given expectedValue.booleanisOperand()Is this expression node an operandvoidpopOperands(java.util.Stack<ExpNode> stack)Read the operands from the stackintprecedence()Precedence of this expression node.java.lang.StringtoString()abstract java.lang.StringtoValueString(java.lang.String defaultValue)Return a string of the value being represented by this bind marker, or the defaultValue if the internal value is null.abstract voidvisit(BindMarkerNodeVisitor visitor)Apply this node to the given visitor-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.database.utils.query.node.ExpNode
isLeftParen, isOperator, isRightParen, visit
-
-
-
-
Method Detail
-
precedence
public int precedence()
Description copied from interface:ExpNodePrecedence of this expression node. Used to parse the expression into the correct tree. We use 0 to represent the highest precedence- Specified by:
precedencein interfaceExpNode- Returns:
-
popOperands
public void popOperands(java.util.Stack<ExpNode> stack)
Description copied from interface:ExpNodeRead the operands from the stack- Specified by:
popOperandsin interfaceExpNode
-
isOperand
public boolean isOperand()
Description copied from interface:ExpNodeIs this expression node an operand
-
visit
public abstract void visit(BindMarkerNodeVisitor visitor)
Apply this node to the given visitor- Parameters:
visitor-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
checkTypeAndValue
public abstract boolean checkTypeAndValue(java.lang.Object expectedValue)
Check that the value represented by this bind marker equals the type and value of the given expectedValue.- Parameters:
expectedValue-- Returns:
-
toValueString
public abstract java.lang.String toValueString(java.lang.String defaultValue)
Return a string of the value being represented by this bind marker, or the defaultValue if the internal value is null.- Returns:
-
-