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
public abstract class Node extends Object
- Since:
- 4.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description NodeaddChild(int index, Node node)NodeaddChild(Node node)abstract QuotingAppendableappend(QuotingAppendable buffer)voidappendChildrenEnd(QuotingAppendable buffer)voidappendChildrenSeparator(QuotingAppendable buffer, int childInd)voidappendChildrenStart(QuotingAppendable buffer)abstract Nodecopy()<T extends Node>
TdeepCopy()NodegetChild(int idx)intgetChildrenCount()NodegetParent()NodeTypegetType()voidreplaceChild(int idx, Node node)voidsetParent(Node parent)StringtoString()voidvisit(NodeTreeVisitor visitor)
-
-
-
Constructor Detail
-
Node
public Node(NodeType type)
-
Node
public Node()
-
-
Method Detail
-
getChild
public Node getChild(int idx)
-
getChildrenCount
public int getChildrenCount()
-
replaceChild
public void replaceChild(int idx, Node node)
-
getParent
public Node getParent()
-
setParent
public void setParent(Node parent)
-
visit
public void visit(NodeTreeVisitor visitor)
-
deepCopy
public <T extends Node> T deepCopy()
- Returns:
- deep copy(i.e. with copies of all children) of this node
-
getType
public NodeType getType()
-
copy
public abstract Node copy()
-
append
public abstract QuotingAppendable append(QuotingAppendable buffer)
-
appendChildrenSeparator
public void appendChildrenSeparator(QuotingAppendable buffer, int childInd)
-
appendChildrenStart
public void appendChildrenStart(QuotingAppendable buffer)
-
appendChildrenEnd
public void appendChildrenEnd(QuotingAppendable buffer)
-
-