Class AssemblyOperandStateGenerator
java.lang.Object
ghidra.app.plugin.assembler.sleigh.sem.AbstractAssemblyStateGenerator<AssemblyParseNumericToken>
ghidra.app.plugin.assembler.sleigh.sem.AssemblyOperandStateGenerator
public class AssemblyOperandStateGenerator
extends AbstractAssemblyStateGenerator<AssemblyParseNumericToken>
The generator of
AssemblyOperandState
from AssemblyParseNumericToken
In short, this handles generation of a single operand state for the operand and value recorded by the given parse token.
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.app.plugin.assembler.sleigh.sem.AbstractAssemblyStateGenerator
AbstractAssemblyStateGenerator.GeneratorContext
-
Field Summary
Fields inherited from class ghidra.app.plugin.assembler.sleigh.sem.AbstractAssemblyStateGenerator
DBG, fromLeft, node, resolver
-
Constructor Summary
ConstructorDescriptionAssemblyOperandStateGenerator
(AbstractAssemblyTreeResolver<?> resolver, AssemblyParseNumericToken node, OperandSymbol opSym, AssemblyResolvedPatterns fromLeft) Construct the operand state generator -
Method Summary
Modifier and TypeMethodDescriptionGenerate states
-
Field Details
-
opSym
-
-
Constructor Details
-
AssemblyOperandStateGenerator
public AssemblyOperandStateGenerator(AbstractAssemblyTreeResolver<?> resolver, AssemblyParseNumericToken node, OperandSymbol opSym, AssemblyResolvedPatterns fromLeft) Construct the operand state generator- Parameters:
resolver
- the resolvernode
- the node from which to generate the stateopSym
- the operand symbolfromLeft
- the accumulated patterns from the left sibling or parent
-
-
Method Details
-
generate
public Stream<AssemblyGeneratedPrototype> generate(AbstractAssemblyStateGenerator.GeneratorContext gc) Description copied from class:AbstractAssemblyStateGenerator
Generate states- Specified by:
generate
in classAbstractAssemblyStateGenerator<AssemblyParseNumericToken>
- Parameters:
gc
- the generator context for this node- Returns:
- the stream of prototypes, each including accumulated patterns
-