Class Vertex


  • public class Vertex
    extends java.lang.Object
    A vertex in the parse tree. FIXME:
    • Field Detail

      • 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:
        toString in class java.lang.Object