Class OpTplWalker
java.lang.Object
ghidra.app.plugin.processors.sleigh.OpTplWalker
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
ConstructorDescriptionOpTplWalker
(ConstructState root, int sectionnum) Constructor for walking an entire parse treeOpTplWalker
(ConstructTpl tpl) Constructor for walking a single template -
Method Summary
-
Constructor Details
-
OpTplWalker
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
Constructor for walking a single template- Parameters:
tpl
-
-
-
Method Details
-
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
-