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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
childrenCountprotected int childrenCount
- 
type
 
- 
- 
Constructor Details- 
Node
- 
Nodepublic Node()
 
- 
- 
Method Details- 
addChild
- 
addChild
- 
getChild
- 
getChildrenCountpublic 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
- 
hashCodepublic int hashCode()
 
-