Class AsmUnknownAttribute


  • public final class AsmUnknownAttribute
    extends org.objectweb.asm.Attribute
    Asm unknown attribute.
    Since:
    0.15.0
    • Constructor Detail

      • AsmUnknownAttribute

        public AsmUnknownAttribute​(String type)
        Constructs a new empty attribute.
        Parameters:
        type - The type of the attribute.
      • AsmUnknownAttribute

        public AsmUnknownAttribute​(String type,
                                   byte[] data)
        Constructs a new unknown attribute.
        Parameters:
        type - The type of the attribute.
        data - The raw data of the attribute.
    • Method Detail

      • bytecode

        public BytecodeUnknownAttribute bytecode()
        Convert to bytecode unknown attribute.
        Returns:
        Bytecode unknown attribute.
      • isUnknown

        public boolean isUnknown()
        Overrides:
        isUnknown in class org.objectweb.asm.Attribute
      • read

        public org.objectweb.asm.Attribute read​(org.objectweb.asm.ClassReader reader,
                                                int offset,
                                                int length,
                                                char[] buffer,
                                                int caoffset,
                                                org.objectweb.asm.Label[] labels)
        Overrides:
        read in class org.objectweb.asm.Attribute
      • write

        public org.objectweb.asm.ByteVector write​(org.objectweb.asm.ClassWriter writer,
                                                  byte[] code,
                                                  int length,
                                                  int stack,
                                                  int locals)
        Overrides:
        write in class org.objectweb.asm.Attribute