Module Simula

Class RepairSTM_MethodVisitor

java.lang.Object
org.objectweb.asm.MethodVisitor
simula.compiler.byteCodeEngineering.RepairSTM_MethodVisitor

public class RepairSTM_MethodVisitor extends org.objectweb.asm.MethodVisitor
Repair STM_ MethodVisitor.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private static final boolean
     
    private org.objectweb.asm.tree.InsnList
     
     
    private int
     
    private org.objectweb.asm.tree.MethodNode
     
    private org.objectweb.asm.MethodVisitor
     

    Fields inherited from class org.objectweb.asm.MethodVisitor

    api, mv
  • Constructor Summary

    Constructors
    Constructor
    Description
    RepairSTM_MethodVisitor(String classFileName, int access, String name, String desc, org.objectweb.asm.MethodVisitor mv)
    The repair STM MethodVisitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    listInstructionSequence(String id, org.objectweb.asm.tree.AbstractInsnNode START, int n)
     
    private void
    treat_STMMethod(String methodName)
     
    private void
    treatJUMPTABLE(org.objectweb.asm.tree.MethodInsnNode invokeStatic)
     
    private void
    treatLABEL(org.objectweb.asm.tree.MethodInsnNode invokeStatic)
     
    void
    Visits the end of the method.

    Methods inherited from class org.objectweb.asm.MethodVisitor

    getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEBUG

      private static final boolean DEBUG
      See Also:
    • classFileName

      private String classFileName
    • mn

      private org.objectweb.asm.tree.MethodNode mn
    • next

      private org.objectweb.asm.MethodVisitor next
    • instructions

      private org.objectweb.asm.tree.InsnList instructions
    • labelHandles

    • maxIndex

      private int maxIndex
  • Constructor Details

    • RepairSTM_MethodVisitor

      RepairSTM_MethodVisitor(String classFileName, int access, String name, String desc, org.objectweb.asm.MethodVisitor mv)
      The repair STM MethodVisitor.
      Parameters:
      classFileName - the classFileName
      access - the method's access flags
      name - the method's name
      desc - the method's descriptor
      mv - the MethodVisitor
  • Method Details

    • visitEnd

      public void visitEnd()
      Description copied from class: org.objectweb.asm.MethodVisitor
      Visits the end of the method. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the method have been visited.
      Overrides:
      visitEnd in class org.objectweb.asm.MethodVisitor
    • treat_STMMethod

      private void treat_STMMethod(String methodName)
    • treatLABEL

      private void treatLABEL(org.objectweb.asm.tree.MethodInsnNode invokeStatic)
    • listInstructionSequence

      private void listInstructionSequence(String id, org.objectweb.asm.tree.AbstractInsnNode START, int n)
    • treatJUMPTABLE

      private void treatJUMPTABLE(org.objectweb.asm.tree.MethodInsnNode invokeStatic)