Class AbstractAssemblyStateGenerator<N extends AssemblyParseTreeNode>
java.lang.Object
ghidra.app.plugin.assembler.sleigh.sem.AbstractAssemblyStateGenerator<N>
- Type Parameters:
N
- the type of parse tree node to process
- Direct Known Subclasses:
AssemblyConstructStateGenerator
,AssemblyNopStateGenerator
,AssemblyOperandStateGenerator
,AssemblyStringStateGenerator
public abstract class AbstractAssemblyStateGenerator<N extends AssemblyParseTreeNode>
extends Object
Base class for generating prototype nodes ("states") from a parse tree node
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Context to pass along as states are generated -
Field Summary
Modifier and TypeFieldDescriptionprotected static final DbgTimer
protected final AssemblyResolvedPatterns
protected final N
protected final AbstractAssemblyTreeResolver
<?> -
Constructor Summary
ConstructorDescriptionAbstractAssemblyStateGenerator
(AbstractAssemblyTreeResolver<?> resolver, N node, AssemblyResolvedPatterns fromLeft) Construct a generator -
Method Summary
-
Field Details
-
DBG
-
resolver
-
node
-
fromLeft
-
-
Constructor Details
-
AbstractAssemblyStateGenerator
public AbstractAssemblyStateGenerator(AbstractAssemblyTreeResolver<?> resolver, N node, AssemblyResolvedPatterns fromLeft) Construct a generator- Parameters:
resolver
- the resolvernode
- the node from which to generate statesfromLeft
- the accumulated patterns from the left sibling or the parent
-
-
Method Details
-
generate
public abstract Stream<AssemblyGeneratedPrototype> generate(AbstractAssemblyStateGenerator.GeneratorContext gc) Generate states- Parameters:
gc
- the generator context for this node- Returns:
- the stream of prototypes, each including accumulated patterns
-