Class 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
    • 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 node
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

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