Class AbstractAssemblyStateGenerator.GeneratorContext
java.lang.Object
ghidra.app.plugin.assembler.sleigh.sem.AbstractAssemblyStateGenerator.GeneratorContext
- Enclosing class:
AbstractAssemblyStateGenerator<N extends AssemblyParseTreeNode>
Context to pass along as states are generated
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGeneratorContext
(List<AssemblyConstructorSemantic> path, int shift) Construct a context -
Method Summary
Modifier and TypeMethodDescriptionvoid
Print a debug linestatic String
Render the path as a printable stringpush
(AssemblyConstructorSemantic cons, int shift) Construct a context suitable for descent into an operand
-
Field Details
-
path
-
shift
public final int shift
-
-
Constructor Details
-
GeneratorContext
Construct a context- Parameters:
path
- the path of constructors, for diagnosticsshift
- the (right) shift in bytes of the operand whose state is being generated
-
-
Method Details
-
pathToString
Render the path as a printable string- Parameters:
path
- the path- Returns:
- the string
-
push
public AbstractAssemblyStateGenerator.GeneratorContext push(AssemblyConstructorSemantic cons, int shift) Construct a context suitable for descent into an operand- Parameters:
cons
- the parent constructorshift
- the shift offset of the operand- Returns:
- the context
-
dbg
Print a debug line- Parameters:
string
- the message
-