Class query.ExpNode
All Packages Class Hierarchy This Package Previous Next Index
Class query.ExpNode
java.lang.Object
|
+----query.ExpNode
- public class ExpNode
- extends Object
Superclass of all nodes that are components of the abstract syntax
trees used to hold filter and ranking expressions.
-
childNum
- The number of this child among the children of its parent.
-
query
- The query context in which this Expnode exists.
-
ExpNode(Query)
- Create a new ExpNode.
-
AddNewChild(ExpNode)
- Add a new child to this node
-
GetChildNum()
- Return the number of this child node relative to its parent
-
GetChildren()
- Return an Vector of the children of this ExpNode
-
GetNumChildren()
- Return the number of children that this node has
-
GetParent()
- Return the parent of this node
-
GetPropertyNames()
- Return an enumeration which is the property names for this
node.
-
GetPropertyValue(String)
- Return the value of a specific property (or null if the
property does not exist).
-
GetQuery()
- Return the query context of this node
-
ReplaceChild(ExpNode, int)
- Replace a child of this node
-
SetParent(ExpNode)
- Set the parent of this node
-
SetPropertyValue(String, Object)
- set a specific property value
-
Unparse()
- Return a string representation of this node
childNum
protected int childNum
- The number of this child among the children of its parent.
query
protected Query query
- The query context in which this Expnode exists.
ExpNode
public ExpNode(Query query)
- Create a new ExpNode.
- Parameters:
- query - The query context of this Expnode
AddNewChild
public void AddNewChild(ExpNode newChild)
- Add a new child to this node
- Parameters:
- newChild - the new child
GetChildren
public Vector GetChildren()
- Return an Vector of the children of this ExpNode
- Returns:
- the Vector of chilren.
GetNumChildren
public int GetNumChildren()
- Return the number of children that this node has
- Returns:
- the number of children that this node has.
GetParent
public ExpNode GetParent()
- Return the parent of this node
- Returns:
- the ExpNode that is the parent of this node.
GetChildNum
public int GetChildNum()
- Return the number of this child node relative to its parent
- Returns:
- the integer number that is this node's child number
GetPropertyNames
public Enumeration GetPropertyNames()
- Return an enumeration which is the property names for this
node.
- Returns:
- an Enumeration containing all the property names of
this ExpNode.
GetPropertyValue
public Object GetPropertyValue(String key)
- Return the value of a specific property (or null if the
property does not exist). The caller should know the type
of the value so it can cast it to the proper class.
- Returns:
- An Object that is the value of the requested property.
ReplaceChild
public void ReplaceChild(ExpNode newChild,
int childNum)
- Replace a child of this node
- Parameters:
- newChild - the child that is the replacement.
- childNum - the number of the child to replace
SetPropertyValue
protected void SetPropertyValue(String name,
Object value)
- set a specific property value
- Parameters:
- name - the name of the property to set
- value - the value of the property
SetParent
protected void SetParent(ExpNode parent)
- Set the parent of this node
- Parameters:
- parent - The parent.
Unparse
public abstract String Unparse()
- Return a string representation of this node
- Returns:
- A String that is the unparsing of this node.
GetQuery
public Query GetQuery()
- Return the query context of this node
- Returns:
- a Query that is the context of this node.
All Packages Class Hierarchy This Package Previous Next Index