org.apache.accumulo.examples.wikisearch.parser
Class TreeNode

java.lang.Object
  extended by org.apache.accumulo.examples.wikisearch.parser.TreeNode

public class TreeNode
extends Object


Nested Class Summary
 class TreeNode.PostorderEnumeration
           
 
Field Summary
static Enumeration<TreeNode> EMPTY_ENUMERATION
           
 
Constructor Summary
TreeNode()
           
 
Method Summary
 Enumeration<?> breadthFirstEnumeration()
           
 Enumeration<?> depthFirstEnumeration()
           
 List<TreeNode> getChildren()
           
 Enumeration<TreeNode> getChildrenAsEnumeration()
           
 TreeNode getParent()
           
 com.google.common.collect.Multimap<String,QueryParser.QueryTerm> getTerms()
           
 Class<? extends org.apache.commons.jexl2.parser.JexlNode> getType()
           
 boolean isLeaf()
           
 void setChildren(List<TreeNode> children)
           
 void setParent(TreeNode parent)
           
 void setTerms(com.google.common.collect.Multimap<String,QueryParser.QueryTerm> terms)
           
 void setType(Class<? extends org.apache.commons.jexl2.parser.JexlNode> type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ENUMERATION

public static final Enumeration<TreeNode> EMPTY_ENUMERATION
Constructor Detail

TreeNode

public TreeNode()
Method Detail

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.