code: @Override
      public void visitMethod(Method obj) {
          stack.resetForMethodEntry(this);
          enumRegs.clear();
          super.visitMethod(obj);
      }
docs: implements the visitor to reset the state
  
  @param obj
  the context object for the currently parsed method