Class AssemblyExtendedProduction
java.lang.Object
ghidra.app.plugin.assembler.sleigh.grammars.AbstractAssemblyProduction<AssemblyExtendedNonTerminal>
ghidra.app.plugin.assembler.sleigh.grammars.AssemblyExtendedProduction
- All Implemented Interfaces:
Comparable<AbstractAssemblyProduction<AssemblyExtendedNonTerminal>>
public class AssemblyExtendedProduction
extends AbstractAssemblyProduction<AssemblyExtendedNonTerminal>
Defines a production of an "extended" grammar
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAssemblyExtendedProduction(AssemblyExtendedNonTerminal lhs, AssemblySentential<AssemblyExtendedNonTerminal> rhs, int finalState, AssemblyProduction ancestor) Construct an extended production based on the given ancestor -
Method Summary
Modifier and TypeMethodDescriptionGet the original production from which this production was derivedintGet the final state of this productiongetLHS()Get the left-hand side
-
Constructor Details
-
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 Details
-
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
Get the original production from which this production was derived- Returns:
- the original production
-