Class OpTplWalker
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.OpTplWalker
-
public class OpTplWalker extends java.lang.Object
Class for walking pcode templates OpTpl in the correct order Supports walking the tree of an entire SleighInstructionPrototype or just a single ConstructTpl
-
-
Constructor Summary
Constructors Constructor Description OpTplWalker(ConstructState root, int sectionnum)
Constructor for walking an entire parse treeOpTplWalker(ConstructTpl tpl)
Constructor for walking a single template
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstructState
getState()
boolean
isState()
java.lang.Object
nextOpTpl()
void
popBuild()
Move to the parent of the current nodevoid
pushBuild(int buildnum)
While walking the OpTpl's in order, follow a particular BUILD directive into its respective Constructor and ContructTpl Use popBuild to backtrack
-
-
-
Constructor Detail
-
OpTplWalker
public OpTplWalker(ConstructState root, int sectionnum)
Constructor for walking an entire parse tree- Parameters:
root
- is the root ConstructState of the treesectionnum
- is the named section to traverse (or -1 for main section)
-
OpTplWalker
public OpTplWalker(ConstructTpl tpl)
Constructor for walking a single template- Parameters:
tpl
-
-
-
Method Detail
-
getState
public ConstructState getState()
-
isState
public boolean isState()
-
pushBuild
public void pushBuild(int buildnum)
While walking the OpTpl's in order, follow a particular BUILD directive into its respective Constructor and ContructTpl Use popBuild to backtrack- Parameters:
buildnum
- is the operand number of the BUILD directive to follow
-
popBuild
public void popBuild()
Move to the parent of the current node
-
nextOpTpl
public java.lang.Object nextOpTpl()
-
-