Class Node
java.lang.Object
org.apache.cayenne.access.sqlbuilder.sqltree.Node
- Direct Known Subclasses:
AliasedNode
,ColumnNode
,ConvertNode
,DeleteNode
,DistinctNode
,EmptyNode
,ExistsNode
,ExpressionNode
,FirebirdLimitNode
,FromNode
,FunctionNode
,GroupByNode
,HavingNode
,InNode
,InsertColumnsNode
,InsertNode
,InsertValuesNode
,JoinNode
,LimitOffsetNode
,NotNode
,OffsetNode
,OrderByNode
,PostgresExtractFunctionNode
,SelectNode
,SelectResultNode
,SubqueryNode
,TableNode
,TextNode
,TopNode
,TrimmingColumnNode
,UpdateNode
,UpdateSetNode
,ValueNode
,WhereNode
- Since:
- 4.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract QuotingAppendable
append
(QuotingAppendable buffer) void
appendChildrenEnd
(QuotingAppendable buffer) void
appendChildrenSeparator
(QuotingAppendable buffer, int childInd) void
appendChildrenStart
(QuotingAppendable buffer) abstract Node
copy()
<T extends Node>
TdeepCopy()
getChild
(int idx) int
getType()
void
replaceChild
(int idx, Node node) void
toString()
void
visit
(NodeTreeVisitor visitor)
-
Field Details
-
parent
-
children
-
childrenCount
protected int childrenCount -
type
-
-
Constructor Details
-
Node
-
Node
public Node()
-
-
Method Details
-
addChild
-
addChild
-
getChild
-
getChildrenCount
public int getChildrenCount() -
replaceChild
-
getParent
-
setParent
-
visit
-
deepCopy
- Returns:
- deep copy(i.e. with copies of all children) of this node
-
toString
-
getType
-
copy
-
append
-
appendChildrenSeparator
-
appendChildrenStart
-
appendChildrenEnd
-