Class NewAttribute

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NewAttribute.ErrorAttribute
      ErrorAttribute extends NewAttribute and manages attributes encountered by ASM that have had an error action specified to pack200 (e.g.
      static class  NewAttribute.PassAttribute
      PassAttribute extends NewAttribute and manages attributes encountered by ASM that have had a pass action specified to pack200 (e.g.
      static class  NewAttribute.StripAttribute
      StripAttribute extends NewAttribute and manages attributes encountered by ASM that have had a strip action specified to pack200 (e.g.
    • Constructor Summary

      Constructors 
      Constructor Description
      NewAttribute​(java.lang.String type, java.lang.String layout, int context)  
      NewAttribute​(org.objectweb.asm.ClassReader classReader, java.lang.String type, java.lang.String layout, byte[] contents, char[] buf, int codeOff, org.objectweb.asm.Label[] labels)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addContext​(int context)  
      byte[] getBytes()  
      org.objectweb.asm.Label getLabel​(int index)  
      java.lang.String getLayout()  
      boolean isCodeAttribute()  
      boolean isContextClass()  
      boolean isContextCode()  
      boolean isContextField()  
      boolean isContextMethod()  
      boolean isUnknown()  
      boolean isUnknown​(int context)  
      protected org.objectweb.asm.Attribute read​(org.objectweb.asm.ClassReader cr, int off, int len, char[] buf, int codeOff, org.objectweb.asm.Label[] labels)  
      java.lang.String readClass​(int index)  
      java.lang.Object readConst​(int index)  
      java.lang.String readUTF8​(int index)  
      • Methods inherited from class org.objectweb.asm.Attribute

        getLabels, read, readLabel, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • contextClass

        private boolean contextClass
      • contextMethod

        private boolean contextMethod
      • contextField

        private boolean contextField
      • contextCode

        private boolean contextCode
      • layout

        private final java.lang.String layout
      • contents

        private byte[] contents
      • codeOff

        private int codeOff
      • labels

        private org.objectweb.asm.Label[] labels
      • classReader

        private org.objectweb.asm.ClassReader classReader
      • buf

        private char[] buf
    • Constructor Detail

      • NewAttribute

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

        public NewAttribute​(java.lang.String type,
                            java.lang.String layout,
                            int context)
    • Method Detail

      • addContext

        public void addContext​(int context)
      • getBytes

        public byte[] getBytes()
      • getLabel

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

        public java.lang.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 java.lang.String readClass​(int index)
      • readConst

        public java.lang.Object readConst​(int index)
      • readUTF8

        public java.lang.String readUTF8​(int index)