Class NewAttribute

java.lang.Object
org.objectweb.asm.Attribute
org.apache.commons.compress.harmony.pack200.NewAttribute
Direct Known Subclasses:
NewAttribute.ErrorAttribute, NewAttribute.PassAttribute, NewAttribute.StripAttribute

public class NewAttribute extends org.objectweb.asm.Attribute
NewAttribute extends Attribute and manages unknown attributes encountered by ASM that have had a layout definition given to pack200 (e.g. via one of the -C, -M, -F or -D command line options)
  • Constructor Details

    • NewAttribute

      public NewAttribute(org.objectweb.asm.ClassReader classReader, String type, String layout, byte[] contents, char[] buf, int codeOff, org.objectweb.asm.Label[] labels)
    • NewAttribute

      public NewAttribute(String type, String layout, int context)
  • Method Details

    • addContext

      public void addContext(int context)
    • getBytes

      public byte[] getBytes()
    • getLabel

      public org.objectweb.asm.Label getLabel(int index)
    • getLayout

      public String getLayout()
    • isCodeAttribute

      public boolean isCodeAttribute()
      Overrides:
      isCodeAttribute in class org.objectweb.asm.Attribute
    • isContextClass

      public boolean isContextClass()
    • isContextCode

      public boolean isContextCode()
    • isContextField

      public boolean isContextField()
    • isContextMethod

      public boolean isContextMethod()
    • isUnknown

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

      public boolean isUnknown(int context)
    • read

      protected org.objectweb.asm.Attribute read(org.objectweb.asm.ClassReader cr, int off, int len, char[] buf, int codeOff, org.objectweb.asm.Label[] labels)
      Overrides:
      read in class org.objectweb.asm.Attribute
    • readClass

      public String readClass(int index)
    • readConst

      public Object readConst(int index)
    • readUTF8

      public String readUTF8(int index)