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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract QuotingAppendableappend(QuotingAppendable buffer) voidappendChildrenEnd(QuotingAppendable buffer) voidappendChildrenSeparator(QuotingAppendable buffer, int childInd) voidappendChildrenStart(QuotingAppendable buffer) abstract Nodecopy()<T extends Node>
TdeepCopy()getChild(int idx) intgetType()voidreplaceChild(int idx, Node node) voidtoString()voidvisit(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
-