| java.lang.Object com.versant.core.jdo.query.Node
All known Subclasses: com.versant.core.jdo.query.ArrayNode, com.versant.core.jdo.query.GroupingNode, com.versant.core.jdo.query.UnaryNode, com.versant.core.jdo.query.OrderNode, com.versant.core.jdo.query.ResultNode, com.versant.core.jdo.query.BinaryNode, com.versant.core.jdo.query.LeafNode, com.versant.core.jdo.query.AndNode, com.versant.core.jdo.query.PrimaryExprNode, com.versant.core.jdo.query.MethodNode, com.versant.core.jdo.query.MultiplyNode, com.versant.core.jdo.query.ArgNode, com.versant.core.jdo.query.AddNode,
Node | abstract public class Node (Code) | | A node in the parse tree for the query.
|
Field Summary | |
public String | asValue | public Node | childList Linked list of children formed using their next fields. | public Node | next This makes it easy to form linked lists of nodes. | public Node | parent Our parent node (null if this is the root node). |
Constructor Summary | |
public | Node() |
childList | public Node childList(Code) | | Linked list of children formed using their next fields.
|
next | public Node next(Code) | | This makes it easy to form linked lists of nodes. This is
faster and uses less memory than arrays of nodes.
|
parent | public Node parent(Code) | | Our parent node (null if this is the root node).
|
checkIntegrity | public void checkIntegrity()(Code) | | Check the integrity of this node. This is used during debugging to
check that all the pointers work out. Currently it just makes sure
that all our children list us as their parents.
|
dump | public void dump(String indent)(Code) | | Dump debugging info to System.out.
|
dumpList | public void dumpList()(Code) | | Dump as a list.
|
dumpThis | protected void dumpThis(String indent)(Code) | | Dump without children.
|
insertChildBefore | public void insertChildBefore(Node pos, Node nw)(Code) | | Insert one node (nw) before another (pos).
|
normalize | final public void normalize()(Code) | | Simplify this node tree as much as possible.
|
normalizeImp | protected void normalizeImp()(Code) | | Simplify this node tree as much as possible.
|
replaceChild | public void replaceChild(Node old, Node nw)(Code) | | Replace one node with another.
|
resolve | public void resolve(QueryParser comp, ClassMetaData cmd, boolean ordering)(Code) | | Resolve field refs and so on relative to the compiler. This must
recursively resolve any child nodes.
|
setParentOnChildren | public void setParentOnChildren()(Code) | | Set the parent link on all our children.
|
updateEvictionDependency | public void updateEvictionDependency(CmdBitSet bitSet)(Code) | | Implement this in nodes to udpate the ClassMetaData depency of the graph.
This is used for query eviction.
Parameters: bitSet - |
|
|