Class AssemblyExtendedProduction
- java.lang.Object
-
- org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
- org.apache.commons.collections4.list.AbstractListDecorator<AssemblySymbol>
-
- ghidra.app.plugin.assembler.sleigh.grammars.AbstractAssemblyProduction<AssemblyExtendedNonTerminal>
-
- ghidra.app.plugin.assembler.sleigh.grammars.AssemblyExtendedProduction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AbstractAssemblyProduction<AssemblyExtendedNonTerminal>>,java.lang.Iterable<AssemblySymbol>,java.util.Collection<AssemblySymbol>,java.util.List<AssemblySymbol>
public class AssemblyExtendedProduction extends AbstractAssemblyProduction<AssemblyExtendedNonTerminal>
Defines a production of an "extended" grammar- See Also:
AssemblyExtendedGrammar, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssemblyExtendedProduction(AssemblyExtendedNonTerminal lhs, AssemblySentential<AssemblyExtendedNonTerminal> rhs, int finalState, AssemblyProduction ancestor)Construct an extended production based on the given ancestor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssemblyProductiongetAncestor()Get the original production from which this production was derivedintgetFinalState()Get the final state of this productionAssemblyExtendedNonTerminalgetLHS()Get the left-hand side-
Methods inherited from class ghidra.app.plugin.assembler.sleigh.grammars.AbstractAssemblyProduction
compareTo, decorated, equals, getIndex, getName, getRHS, hashCode, subList, 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
-
-
-
-
Constructor Detail
-
AssemblyExtendedProduction
public AssemblyExtendedProduction(AssemblyExtendedNonTerminal lhs, AssemblySentential<AssemblyExtendedNonTerminal> rhs, int finalState, AssemblyProduction ancestor)
Construct an extended production based on the given ancestor- Parameters:
lhs- the extended left-hand siderhs- the extended right-hand sidefinalState- the end state of the final symbol of the RHSancestor- the original production from which this extended production is derived
-
-
Method Detail
-
getLHS
public AssemblyExtendedNonTerminal getLHS()
Description copied from class:AbstractAssemblyProductionGet the left-hand side- Overrides:
getLHSin classAbstractAssemblyProduction<AssemblyExtendedNonTerminal>- Returns:
- the LHS
-
getFinalState
public int getFinalState()
Get the final state of this production- Returns:
- the end state of the last symbol of the RHS
-
getAncestor
public AssemblyProduction getAncestor()
Get the original production from which this production was derived- Returns:
- the original production
-
-