Package org.nineml.coffeegrinder.trees
Class GenericTree
- java.lang.Object
-
- org.nineml.coffeegrinder.trees.GenericTree
-
- Direct Known Subclasses:
GenericBranch,GenericLeaf
public abstract class GenericTree extends java.lang.ObjectA generic tree representation of a parse.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.lang.String>attributesintleftExtentintrightExtent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttribute(java.lang.String name, java.lang.String defaultValue)java.util.Map<java.lang.String,java.lang.String>getAttributes()java.util.List<GenericTree>getChildren()GenericBranchgetParent()
-
-
-
Method Detail
-
getParent
public GenericBranch getParent()
-
getChildren
public java.util.List<GenericTree> getChildren()
-
getAttribute
public java.lang.String getAttribute(java.lang.String name, java.lang.String defaultValue)
-
getAttributes
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
-
-