Class TreeToString
java.lang.Object
ch.tocco.nice2.conditionals.api.tree.processing.BaseNodeVisitor
ch.tocco.nice2.conditionals.api.tree.processing.TreeToString
- All Implemented Interfaces:
NodeVisitor
- Direct Known Subclasses:
OrderToQuery
,WhereToQuery
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TreeToString
append
(char str) protected TreeToString
protected TreeToString
void
clear()
protected void
onNonFirstFuncallParent
(Cursor cursor, Node node) Called fromvisit(Cursor, ch.tocco.nice2.conditionals.api.tree.Node)
if the parent ofnode
is aFuncallNode
andnode
is not the first of its children.toString()
static String
void
void
visitCondition
(Cursor cursor, ConditionNode node) void
visitFactor
(Cursor cursor, FactorNode node) void
visitFuncall
(Cursor cursor, FuncallNode node) void
visitIdentifier
(Cursor cursor, IdentifierNode node) void
visitLiteral
(Cursor cursor, LiteralNode node) void
visitLogical
(Cursor cursor, LogicalNode node) void
void
visitParameter
(Cursor cursor, ParameterNode node) protected TreeToString
Methods inherited from class ch.tocco.nice2.conditionals.api.tree.processing.BaseNodeVisitor
beginTree, changed, endTree, hasChanged, visitAnd, visitEquation, visitIntegration, visitIsTrue, visitOr, visitPath
-
Field Details
-
ORIGINAL_NODE_KEY
- See Also:
-
-
Constructor Details
-
TreeToString
public TreeToString()
-
-
Method Details
-
whitespace
-
append
-
append
-
append
-
visit
- Specified by:
visit
in interfaceNodeVisitor
- Overrides:
visit
in classBaseNodeVisitor
-
onNonFirstFuncallParent
Called fromvisit(Cursor, ch.tocco.nice2.conditionals.api.tree.Node)
if the parent ofnode
is aFuncallNode
andnode
is not the first of its children. -
visitLogical
- Specified by:
visitLogical
in interfaceNodeVisitor
- Overrides:
visitLogical
in classBaseNodeVisitor
-
visitNot
- Specified by:
visitNot
in interfaceNodeVisitor
- Overrides:
visitNot
in classBaseNodeVisitor
-
visitCondition
- Specified by:
visitCondition
in interfaceNodeVisitor
- Overrides:
visitCondition
in classBaseNodeVisitor
-
visitFactor
- Specified by:
visitFactor
in interfaceNodeVisitor
- Overrides:
visitFactor
in classBaseNodeVisitor
-
visitIdentifier
- Specified by:
visitIdentifier
in interfaceNodeVisitor
- Overrides:
visitIdentifier
in classBaseNodeVisitor
-
visitLiteral
- Specified by:
visitLiteral
in interfaceNodeVisitor
- Overrides:
visitLiteral
in classBaseNodeVisitor
-
visitParameter
- Specified by:
visitParameter
in interfaceNodeVisitor
- Overrides:
visitParameter
in classBaseNodeVisitor
-
visitFuncall
- Specified by:
visitFuncall
in interfaceNodeVisitor
- Overrides:
visitFuncall
in classBaseNodeVisitor
-
clear
public void clear() -
toString
-
toString
-