|
||||||||||
| 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. |
static int |
CLASS
class node type (use in a "from" clause for a candidate). |
static int |
CREATOR
creator node type. |
static int |
IDENTIFIER
identifier node type |
static int |
INVOKE
invoke node type. |
static int |
LITERAL
literal node type |
static int |
NAME
type name node type. |
protected int |
nodeType
Type of node. |
protected java.lang.Object |
nodeValue
Value of the node. |
static int |
OPERATOR
operator node type. |
static int |
PARAMETER
parameter node type |
protected Node |
parent
Parent of this node. |
protected java.util.List |
properties
List of properties for the node. |
protected Symbol |
symbol
|
| Constructor Summary | |
|---|---|
Node(int nodeType)
|
|
Node(int 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()
|
int |
getNodeType()
|
java.lang.Object |
getNodeValue()
|
Node |
getParent()
|
java.util.List |
getProperties()
|
Symbol |
getSymbol()
|
boolean |
hasNextChild()
|
boolean |
hasProperties()
|
Node |
insertChildNode(Node node)
|
void |
setParent(Node parent)
|
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 |
|---|
public static final int LITERAL
public static final int INVOKE
public static final int NAME
public static final int IDENTIFIER
public static final int OPERATOR
public static final int CREATOR
public static final int CLASS
public static final int PARAMETER
protected int nodeType
protected java.lang.Object nodeValue
protected Symbol symbol
protected Node parent
protected java.util.List childNodes
protected java.util.List properties
| Constructor Detail |
|---|
public Node(int nodeType)
public Node(int nodeType,
java.lang.Object nodeValue)
| Method Detail |
|---|
public int getNodeType()
public java.lang.Object getNodeValue()
public boolean hasProperties()
public java.util.List getProperties()
public void addProperty(Node node)
public java.util.List getChildNodes()
public Node insertChildNode(Node node)
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 | |||||||||