Class AbstractAssemblyProduction<NT extends AssemblyNonTerminal>
- java.lang.Object
- 
- org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
- 
- org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
- 
- ghidra.app.plugin.assembler.sleigh.grammars.AbstractAssemblyProduction<NT>
 
 
 
- 
- Type Parameters:
- NT- the type of non-terminals
- T- the type of terminals
 - All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<AbstractAssemblyProduction<NT>>,- java.lang.Iterable<AssemblySymbol>,- java.util.Collection<AssemblySymbol>,- java.util.List<AssemblySymbol>
 - Direct Known Subclasses:
- AssemblyExtendedProduction,- AssemblyProduction
 
 public abstract class AbstractAssemblyProduction<NT extends AssemblyNonTerminal> extends org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol> implements java.lang.Comparable<AbstractAssemblyProduction<NT>> Defines a production in a context-free grammar, usually for parsing mnemonic assembly- See Also:
- AbstractAssemblyGrammar, Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractAssemblyProduction(NT lhs, AssemblySentential<NT> rhs)Construct a production with the given LHS and RHS
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AbstractAssemblyProduction<NT> that)protected java.util.List<AssemblySymbol>decorated()booleanequals(java.lang.Object that)intgetIndex()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.NTgetLHS()Get the left-hand sidejava.lang.StringgetName()Get the "name" of this production This is mostly just notional and for debugging.AssemblySentential<NT>getRHS()Get the right-hand sideinthashCode()AssemblySentential<NT>subList(int fromIndex, int toIndex)java.lang.StringtoString()- 
Methods inherited from class org.apache.commons.collections4.list.AbstractListDecoratoradd, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set
 - 
Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecoratoradd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractAssemblyProductionpublic 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- 
decoratedprotected java.util.List<AssemblySymbol> decorated() - Overrides:
- decoratedin class- org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
 
 - 
getIndexpublic 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
 
 - 
getLHSpublic NT getLHS() Get the left-hand side- Returns:
- the LHS
 
 - 
getRHSpublic AssemblySentential<NT> getRHS() Get the right-hand side- Returns:
- the RHS
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- org.apache.commons.collections4.collection.AbstractCollectionDecorator<AssemblySymbol>
 
 - 
equalspublic boolean equals(java.lang.Object that) - Specified by:
- equalsin interface- java.util.Collection<NT extends AssemblyNonTerminal>
- Specified by:
- equalsin interface- java.util.List<NT extends AssemblyNonTerminal>
- Overrides:
- equalsin class- org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
 
 - 
compareTopublic int compareTo(AbstractAssemblyProduction<NT> that) - Specified by:
- compareToin interface- java.lang.Comparable<NT extends AssemblyNonTerminal>
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- java.util.Collection<NT extends AssemblyNonTerminal>
- Specified by:
- hashCodein interface- java.util.List<NT extends AssemblyNonTerminal>
- Overrides:
- hashCodein class- org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
 
 - 
subListpublic AssemblySentential<NT> subList(int fromIndex, int toIndex) - Specified by:
- subListin interface- java.util.List<NT extends AssemblyNonTerminal>
- Overrides:
- subListin class- org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
 
 - 
getNamepublic 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
 
 
- 
 
-