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
Nested ClassesModifier and TypeClassDescriptionstatic classErrorAttribute extendsNewAttributeand manages attributes encountered by ASM that have had an error action specified to pack200 (e.g.static classPassAttribute extendsNewAttributeand manages attributes encountered by ASM that have had a pass action specified to pack200 (e.g.static classStripAttribute extendsNewAttributeand manages attributes encountered by ASM that have had a strip action specified to pack200 (e.g. -
Field Summary
Fields inherited from class org.objectweb.asm.Attribute
type -
Constructor Summary
ConstructorsConstructorDescriptionNewAttribute(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 TypeMethodDescriptionvoidaddContext(int context) byte[]getBytes()org.objectweb.asm.LabelgetLabel(int index) booleanbooleanbooleanbooleanbooleanbooleanbooleanisUnknown(int context) protected org.objectweb.asm.Attributeread(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:
isCodeAttributein classorg.objectweb.asm.Attribute
-
isContextClass
-
isContextCode
-
isContextField
-
isContextMethod
-
isUnknown
- Overrides:
isUnknownin 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:
readin classorg.objectweb.asm.Attribute
-
readClass
-
readConst
-
readUTF8
-