Class Node
java.lang.Object
org.apache.cayenne.access.sqlbuilder.sqltree.Node
- Direct Known Subclasses:
AliasedNode,CaseNode,ColumnNode,ConvertNode,DeleteNode,DistinctNode,ElseNode,EmptyNode,ExistsNode,ExpressionNode,FirebirdLimitNode,FromNode,FunctionNode,GroupByNode,HavingNode,InNode,InsertColumnsNode,InsertNode,InsertValuesNode,JoinNode,LimitOffsetNode,NotNode,OffsetNode,OrderByNode,PostgresExtractFunctionNode,SelectNode,SelectResultNode,SubqueryNode,TableNode,TextNode,ThenNode,TopNode,TrimmingColumnNode,UpdateNode,UpdateSetNode,ValueNode,WhenNode,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()booleandeepEquals(Node node) booleangetChild(int idx) intgetType()inthashCode()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
-
deepEquals
- Parameters:
node- to compare with- Returns:
- true if this node and all it's children are equal to the given node
- Since:
- 5.0
-
equals
-
hashCode
public int hashCode()
-