Class BytecodeMethodProperties

  • All Implemented Interfaces:
    Testable

    public final class BytecodeMethodProperties
    extends Object
    implements Testable
    Bytecode method properties.
    Since:
    0.1
    • Constructor Detail

      • BytecodeMethodProperties

        public BytecodeMethodProperties​(String name,
                                        String descriptor,
                                        int... modifiers)
        Constructor.
        Parameters:
        name - Method name.
        descriptor - Method descriptor.
        modifiers - Access modifiers.
      • BytecodeMethodProperties

        public BytecodeMethodProperties​(String name,
                                        String descriptor,
                                        String signature,
                                        int... modifiers)
        Constructor.
        Parameters:
        name - Method name.
        descriptor - Method descriptor.
        signature - Method signature.
        modifiers - Access modifiers.
      • BytecodeMethodProperties

        public BytecodeMethodProperties​(int access,
                                        String name,
                                        String descriptor,
                                        String signature,
                                        String... exceptions)
        Constructor.
        Parameters:
        access - Access modifiers.
        name - Method name.
        descriptor - Method descriptor.
        signature - Method signature.
        exceptions - Method exceptions.
    • Method Detail

      • testCode

        public String testCode()
        Description copied from interface: Testable
        Generate test Java code.
        Specified by:
        testCode in interface Testable
        Returns:
        Java code.
      • isAbstract

        public boolean isAbstract()
        Is method abstract.
        Returns:
        True if method is abstract.