< prev index next >

src/java.base/share/classes/jdk/internal/org/objectweb/asm/commons/AdviceAdapter.java

Print this page
rev 47452 : imported patch jdk-new-asmv6.patch


  95 
  96     private static final Object OTHER = new Object();
  97 
  98     protected int methodAccess;
  99 
 100     protected String methodDesc;
 101 
 102     private boolean constructor;
 103 
 104     private boolean superInitialized;
 105 
 106     private List<Object> stackFrame;
 107 
 108     private Map<Label, List<Object>> branches;
 109 
 110     /**
 111      * Creates a new {@link AdviceAdapter}.
 112      *
 113      * @param api
 114      *            the ASM API version implemented by this visitor. Must be one
 115      *            of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}.
 116      * @param mv
 117      *            the method visitor to which this adapter delegates calls.
 118      * @param access
 119      *            the method's access flags (see {@link Opcodes}).
 120      * @param name
 121      *            the method's name.
 122      * @param desc
 123      *            the method's descriptor (see {@link Type Type}).
 124      */
 125     protected AdviceAdapter(final int api, final MethodVisitor mv,
 126             final int access, final String name, final String desc) {
 127         super(api, mv, access, name, desc);
 128         methodAccess = access;
 129         methodDesc = desc;
 130         constructor = "<init>".equals(name);
 131     }
 132 
 133     @Override
 134     public void visitCode() {
 135         mv.visitCode();




  95 
  96     private static final Object OTHER = new Object();
  97 
  98     protected int methodAccess;
  99 
 100     protected String methodDesc;
 101 
 102     private boolean constructor;
 103 
 104     private boolean superInitialized;
 105 
 106     private List<Object> stackFrame;
 107 
 108     private Map<Label, List<Object>> branches;
 109 
 110     /**
 111      * Creates a new {@link AdviceAdapter}.
 112      *
 113      * @param api
 114      *            the ASM API version implemented by this visitor. Must be one
 115      *            of {@link Opcodes#ASM4}, {@link Opcodes#ASM5} or {@link Opcodes#ASM6}.
 116      * @param mv
 117      *            the method visitor to which this adapter delegates calls.
 118      * @param access
 119      *            the method's access flags (see {@link Opcodes}).
 120      * @param name
 121      *            the method's name.
 122      * @param desc
 123      *            the method's descriptor (see {@link Type Type}).
 124      */
 125     protected AdviceAdapter(final int api, final MethodVisitor mv,
 126             final int access, final String name, final String desc) {
 127         super(api, mv, access, name, desc);
 128         methodAccess = access;
 129         methodDesc = desc;
 130         constructor = "<init>".equals(name);
 131     }
 132 
 133     @Override
 134     public void visitCode() {
 135         mv.visitCode();


< prev index next >