Class OpTplWalker

java.lang.Object
ghidra.app.plugin.processors.sleigh.OpTplWalker

public class OpTplWalker extends 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 Details

    • OpTplWalker

      public OpTplWalker(ConstructState root, int sectionnum)
      Constructor for walking an entire parse tree
      Parameters:
      root - is the root ConstructState of the tree
      sectionnum - 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 Details

    • 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 Object nextOpTpl()