Package org.nineml.coffeegrinder.trees
Class Vertex
- java.lang.Object
-
- org.nineml.coffeegrinder.trees.Vertex
-
public class Vertex extends java.lang.ObjectA vertex in the parse tree. FIXME:
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Family>choicesThe alternatives from this vertex.booleanisAmbiguousIs the vertex ambiguous?ForestNodenodeThe node.java.util.List<ParserAttribute>parserAttributesThe attributes of this vertex.
-
Constructor Summary
Constructors Constructor Description Vertex(ForestNode node, java.util.List<ParserAttribute> parserAttributes)Create a vertex.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Family>getChoices()What choices exist from this vertex?java.lang.StringtoString()
-
-
-
Field Detail
-
node
public final ForestNode node
The node.
-
choices
public final java.util.List<Family> choices
The alternatives from this vertex.This is not really a public API; it is only public because of C# constraints on symbol visibility.
-
isAmbiguous
public final boolean isAmbiguous
Is the vertex ambiguous?
-
parserAttributes
public final java.util.List<ParserAttribute> parserAttributes
The attributes of this vertex.
-
-
Constructor Detail
-
Vertex
public Vertex(ForestNode node, java.util.List<ParserAttribute> parserAttributes)
Create a vertex.- Parameters:
node- the node.parserAttributes- the attributes.
-
-
Method Detail
-
getChoices
public java.util.List<Family> getChoices()
What choices exist from this vertex?- Returns:
- the choices.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-