Class BytecodeMethodBuilder


  • public final class BytecodeMethodBuilder
    extends Object
    Bytecode method builder.
    Since:
    0.6
    • Constructor Detail

      • BytecodeMethodBuilder

        public BytecodeMethodBuilder​(BytecodeClass clazz,
                                     BytecodeMethod method)
        Constructor.
        Parameters:
        clazz - Class.
        method - Method.
    • Method Detail

      • up

        public BytecodeClass up()
        Return to the original class.
        Returns:
        Original class.
        Suppressed Checkstyle violations:
        MethodNameCheck (3 lines)
      • opcode

        public BytecodeMethodBuilder opcode​(int opcode,
                                            Object... args)
        Add instruction.
        Parameters:
        opcode - Opcode.
        args - Arguments.
        Returns:
        This object.