public abstract class Node extends Object
Modifier and Type | Field and Description |
---|---|
protected Node[] |
children |
protected int |
childrenCount |
protected Node |
parent |
protected NodeType |
type |
Modifier and Type | Method and Description |
---|---|
Node |
addChild(int index,
Node node) |
Node |
addChild(Node node) |
abstract QuotingAppendable |
append(QuotingAppendable buffer) |
void |
appendChildrenEnd(QuotingAppendable buffer) |
void |
appendChildrenSeparator(QuotingAppendable buffer,
int childInd) |
void |
appendChildrenStart(QuotingAppendable buffer) |
abstract Node |
copy() |
<T extends Node> |
deepCopy() |
Node |
getChild(int idx) |
int |
getChildrenCount() |
Node |
getParent() |
NodeType |
getType() |
void |
replaceChild(int idx,
Node node) |
void |
setParent(Node parent) |
String |
toString() |
void |
visit(NodeTreeVisitor visitor) |
protected Node parent
protected Node[] children
protected int childrenCount
protected final NodeType type
public Node(NodeType type)
public Node()
public Node getChild(int idx)
public int getChildrenCount()
public void replaceChild(int idx, Node node)
public Node getParent()
public void setParent(Node parent)
public void visit(NodeTreeVisitor visitor)
public <T extends Node> T deepCopy()
public NodeType getType()
public abstract Node copy()
public abstract QuotingAppendable append(QuotingAppendable buffer)
public void appendChildrenSeparator(QuotingAppendable buffer, int childInd)
public void appendChildrenStart(QuotingAppendable buffer)
public void appendChildrenEnd(QuotingAppendable buffer)
Copyright © 2001–2020 Apache Cayenne. All rights reserved.