Class AbstractAssemblyProduction<NT extends AssemblyNonTerminal>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(AbstractAssemblyProduction<NT> that)  
      protected java.util.List<AssemblySymbol> decorated()  
      boolean equals​(java.lang.Object that)  
      int getIndex()
      Get the index of the production Instead of using deep comparison, the index is often used as the identify of the production within a grammar.
      NT getLHS()
      Get the left-hand side
      java.lang.String getName()
      Get the "name" of this production This is mostly just notional and for debugging.
      AssemblySentential<NT> getRHS()
      Get the right-hand side
      int hashCode()  
      AssemblySentential<NT> subList​(int fromIndex, int toIndex)  
      java.lang.String toString()  
      • Methods inherited from class org.apache.commons.collections4.list.AbstractListDecorator

        add, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set
      • Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecorator

        add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
    • Constructor Detail

      • AbstractAssemblyProduction

        public AbstractAssemblyProduction​(NT lhs,
                                          AssemblySentential<NT> rhs)
        Construct a production with the given LHS and RHS
        Parameters:
        lhs - the left-hand side
        rhs - the right-hand side
    • Method Detail

      • decorated

        protected java.util.List<AssemblySymbol> decorated()
        Overrides:
        decorated in class org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
      • getIndex

        public int getIndex()
        Get the index of the production Instead of using deep comparison, the index is often used as the identify of the production within a grammar.
        Returns:
        the index
      • getLHS

        public NT getLHS()
        Get the left-hand side
        Returns:
        the LHS
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblySymbol>
      • equals

        public boolean equals​(java.lang.Object that)
        Specified by:
        equals in interface java.util.Collection<NT extends AssemblyNonTerminal>
        Specified by:
        equals in interface java.util.List<NT extends AssemblyNonTerminal>
        Overrides:
        equals in class org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<NT extends AssemblyNonTerminal>
        Specified by:
        hashCode in interface java.util.List<NT extends AssemblyNonTerminal>
        Overrides:
        hashCode in class org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
      • getName

        public java.lang.String getName()
        Get the "name" of this production This is mostly just notional and for debugging. The name is taken as the name of the LHS.
        Returns:
        the name of the LHS