Home » lucene-3.0.1-src » org.apache.lucene.queryParser.core.nodes » [javadoc | source]
public interface: QueryNode [javadoc | source]

All Implemented Interfaces:

A QueryNode is a interface implemented by all nodes on a QueryNode tree.
Method from org.apache.lucene.queryParser.core.nodes.QueryNode Summary:
add,   add,   cloneTree,   containsTag,   getChildren,   getParent,   getTag,   getTags,   isLeaf,   set,   setTag,   toQueryString,   toString,   unsetTag
Method from org.apache.lucene.queryParser.core.nodes.QueryNode Detail:
 public  void add(QueryNode child)
 public  void add(List<QueryNode> children)
 public QueryNode cloneTree() throws CloneNotSupportedException
    Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method
 public boolean containsTag(CharSequence tagName)
    verify if a node contains a tag
 public List<QueryNode> getChildren()
    get Children nodes
 public QueryNode getParent()
 public Object getTag(CharSequence tagName)
 public Map<CharSequence, Object> getTags()
 public boolean isLeaf()
    verify if a node is a Leaf node
 public  void set(List<QueryNode> children)
 public  void setTag(CharSequence tagName,
    Object value)
    Associate the specified value with the specified tagName. If the tagName already exists, the old value is replaced. The tagName and value cannot be null. tagName will be converted to lowercase.
 public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
    convert to a query string understood by the query parser
 public String toString()
    for printing
 public  void unsetTag(CharSequence tagName)
    Unset a tag. tagName will be converted to lowercase.