Class JSRInlinerAdapter

  • All Implemented Interfaces:
    Opcodes

    public class JSRInlinerAdapter
    extends MethodNode
    implements Opcodes
    A MethodVisitor that removes JSR instructions and inlines the referenced subroutines.
    Author:
    Niko Matsakis
    • Constructor Detail

      • JSRInlinerAdapter

        public JSRInlinerAdapter​(MethodVisitor methodVisitor,
                                 int access,
                                 String name,
                                 String descriptor,
                                 String signature,
                                 String[] exceptions)
        Constructs a new JSRInlinerAdapter. Subclasses must not use this constructor. Instead, they must use the JSRInlinerAdapter(int, MethodVisitor, int, String, String, String, String[]) version.
        Parameters:
        methodVisitor - the method visitor to send the resulting inlined method code to, or null.
        access - the method's access flags.
        name - the method's name.
        descriptor - the method's descriptor.
        signature - the method's signature. May be null.
        exceptions - the internal names of the method's exception classes. May be null.
        Throws:
        IllegalStateException - if a subclass calls this constructor.
      • JSRInlinerAdapter

        protected JSRInlinerAdapter​(int api,
                                    MethodVisitor methodVisitor,
                                    int access,
                                    String name,
                                    String descriptor,
                                    String signature,
                                    String[] exceptions)
        Constructs a new JSRInlinerAdapter.
        Parameters:
        api - the ASM API version implemented by this visitor. Must be one of the ASMx values in Opcodes.
        methodVisitor - the method visitor to send the resulting inlined method code to, or null.
        access - the method's access flags (see Opcodes). This parameter also indicates if the method is synthetic and/or deprecated.
        name - the method's name.
        descriptor - the method's descriptor.
        signature - the method's signature. May be null.
        exceptions - the internal names of the method's exception classes. May be null.