org.apache.accumulo.examples.wikisearch.parser
Class TreeNode
java.lang.Object
org.apache.accumulo.examples.wikisearch.parser.TreeNode
public class TreeNode
- extends Object
EMPTY_ENUMERATION
public static final Enumeration<TreeNode> EMPTY_ENUMERATION
TreeNode
public TreeNode()
getType
public Class<? extends org.apache.commons.jexl2.parser.JexlNode> getType()
getParent
public TreeNode getParent()
getChildren
public List<TreeNode> getChildren()
getChildrenAsEnumeration
public Enumeration<TreeNode> getChildrenAsEnumeration()
getTerms
public com.google.common.collect.Multimap<String,QueryParser.QueryTerm> getTerms()
setType
public void setType(Class<? extends org.apache.commons.jexl2.parser.JexlNode> type)
setParent
public void setParent(TreeNode parent)
setChildren
public void setChildren(List<TreeNode> children)
setTerms
public void setTerms(com.google.common.collect.Multimap<String,QueryParser.QueryTerm> terms)
isLeaf
public boolean isLeaf()
toString
public String toString()
- Overrides:
toString
in class Object
depthFirstEnumeration
public final Enumeration<?> depthFirstEnumeration()
breadthFirstEnumeration
public Enumeration<?> breadthFirstEnumeration()
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.