|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.query.node.Node
public class Node
Representation of a node in a tree of nodes. Has a parent, and a list of children. Each node has a type and a value. Optionally has a set of properties; these represent arguments when part of a method call.
| Field Summary | |
|---|---|
protected java.util.List |
childNodes
List of child nodes in the tree below here. |
protected NodeType |
nodeType
Type of node. |
protected java.lang.Object |
nodeValue
Value of the node. |
protected Node |
parent
Parent of this node. |
protected java.util.List<Node> |
properties
List of properties for the node. |
protected Symbol |
symbol
|
| Constructor Summary | |
|---|---|
Node(NodeType nodeType)
|
|
Node(NodeType nodeType,
java.lang.Object nodeValue)
|
|
| Method Summary | |
|---|---|
void |
addProperty(Node node)
|
Node |
appendChildNode(Node node)
|
Node[] |
appendChildNode(Node[] node)
|
Node[][] |
appendChildNode(Node[][] node)
|
Node |
getChildNode(int index)
|
java.util.List |
getChildNodes()
|
Node |
getFirstChild()
|
Node |
getNextChild()
|
java.lang.String |
getNodeChildId()
|
java.lang.String |
getNodeId()
|
NodeType |
getNodeType()
|
java.lang.Object |
getNodeValue()
|
Node |
getParent()
|
java.util.List<Node> |
getProperties()
|
Symbol |
getSymbol()
|
boolean |
hasNextChild()
|
boolean |
hasProperties()
|
Node |
insertChildNode(Node node)
|
Node |
insertChildNode(Node node,
int position)
|
void |
removeChildNode(Node node)
|
void |
setNodeValue(java.lang.Object val)
|
void |
setParent(Node parent)
|
void |
setPropertyAtPosition(int position,
Node node)
|
void |
setSymbol(Symbol symbol)
|
java.lang.String |
toString()
Method to print out the Node as a tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected NodeType nodeType
protected java.lang.Object nodeValue
protected Symbol symbol
protected Node parent
protected java.util.List childNodes
protected java.util.List<Node> properties
| Constructor Detail |
|---|
public Node(NodeType nodeType)
public Node(NodeType nodeType,
java.lang.Object nodeValue)
| Method Detail |
|---|
public NodeType getNodeType()
public void setNodeValue(java.lang.Object val)
public java.lang.Object getNodeValue()
public boolean hasProperties()
public java.util.List<Node> getProperties()
public void addProperty(Node node)
public void setPropertyAtPosition(int position,
Node node)
public java.util.List getChildNodes()
public void removeChildNode(Node node)
public Node insertChildNode(Node node)
public Node insertChildNode(Node node,
int position)
public Node appendChildNode(Node node)
public Node[] appendChildNode(Node[] node)
public Node[][] appendChildNode(Node[][] node)
public Node getChildNode(int index)
public Node getFirstChild()
public Node getNextChild()
public boolean hasNextChild()
public Symbol getSymbol()
public void setSymbol(Symbol symbol)
public void setParent(Node parent)
public Node getParent()
public java.lang.String getNodeId()
public java.lang.String getNodeChildId()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||