Class DebugExpNodeVisitor
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.query.expression.StringExpNodeVisitor
-
- org.linuxforhealth.fhir.database.utils.query.expression.DebugExpNodeVisitor
-
- All Implemented Interfaces:
ExpNodeVisitor<java.lang.String>
public class DebugExpNodeVisitor extends StringExpNodeVisitor
Debug version of theStringExpNodeVisitor
which is used to render the string with the bind variable values written in-place, which is handy for debug.
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.database.utils.query.expression.StringExpNodeVisitor
NEWLINE
-
-
Constructor Summary
Constructors Constructor Description DebugExpNodeVisitor()
Simple rendering of the expression tree to a string, ignoring the bind marker values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
bindMarker(java.lang.Double value)
java.lang.String
bindMarker(java.lang.Integer value)
java.lang.String
bindMarker(java.lang.Long value)
java.lang.String
bindMarker(java.lang.String value)
java.lang.String
bindMarker(java.time.Instant value)
java.lang.String
select(Select select)
Process a sub-select statement-
Methods inherited from class org.linuxforhealth.fhir.database.utils.query.expression.StringExpNodeVisitor
acos, add, and, between, bindMarker, coalesce, column, cos, divide, eq, escape, exists, gt, gte, in, isNotNull, isNull, like, literal, literal, literal, lt, lte, multiply, neq, not, notExists, or, paren, radians, sin, stringify, subtract
-
-
-
-
Method Detail
-
bindMarker
public java.lang.String bindMarker(java.lang.Double value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.lang.String>
- Overrides:
bindMarker
in classStringExpNodeVisitor
-
bindMarker
public java.lang.String bindMarker(java.lang.Long value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.lang.String>
- Overrides:
bindMarker
in classStringExpNodeVisitor
-
bindMarker
public java.lang.String bindMarker(java.lang.String value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.lang.String>
- Overrides:
bindMarker
in classStringExpNodeVisitor
-
bindMarker
public java.lang.String bindMarker(java.time.Instant value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.lang.String>
- Overrides:
bindMarker
in classStringExpNodeVisitor
-
bindMarker
public java.lang.String bindMarker(java.lang.Integer value)
- Specified by:
bindMarker
in interfaceExpNodeVisitor<java.lang.String>
- Overrides:
bindMarker
in classStringExpNodeVisitor
-
select
public java.lang.String select(Select select)
Description copied from interface:ExpNodeVisitor
Process a sub-select statement- Specified by:
select
in interfaceExpNodeVisitor<java.lang.String>
- Overrides:
select
in classStringExpNodeVisitor
- Returns:
-
-