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
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)-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ErrorAttribute extendsNewAttribute
and manages attributes encountered by ASM that have had an error action specified to pack200 (e.g. via one of the -C, -M, -F or -D command line options such as -Cattribute-name=error)static class
PassAttribute extendsNewAttribute
and manages attributes encountered by ASM that have had a pass action specified to pack200 (e.g. via one of the -C, -M, -F or -D command line options such as -Cattribute-name=pass)static class
StripAttribute extendsNewAttribute
and manages attributes encountered by ASM that have had a strip action specified to pack200 (e.g. via one of the -C, -M, -F or -D command line options such as -Cattribute-name=strip) -
Field Summary
Fields inherited from class org.objectweb.asm.Attribute
type
-
Constructor Summary
ConstructorDescriptionNewAttribute
(String type, String layout, int context) NewAttribute
(org.objectweb.asm.ClassReader classReader, String type, String layout, byte[] contents, char[] buf, int codeOff, org.objectweb.asm.Label[] labels) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContext
(int context) byte[]
getBytes()
org.objectweb.asm.Label
getLabel
(int index) boolean
boolean
boolean
boolean
boolean
boolean
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) readClass
(int index) readConst
(int index) readUTF8
(int index) Methods inherited from class org.objectweb.asm.Attribute
getLabels, write
-
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
-
-
Method Details
-
addContext
-
getBytes
-
getLabel
-
getLayout
-
isCodeAttribute
- Overrides:
isCodeAttribute
in classorg.objectweb.asm.Attribute
-
isContextClass
-
isContextCode
-
isContextField
-
isContextMethod
-
isUnknown
- Overrides:
isUnknown
in classorg.objectweb.asm.Attribute
-
isUnknown
-
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 classorg.objectweb.asm.Attribute
-
readClass
-
readConst
-
readUTF8
-