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 extendsAttributeand manages unknown attributes encountered by ASM that have had a layout definition given to pack200 (for example via one of the -C, -M, -F or -D command line options)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNewAttribute.ErrorAttributeErrorAttribute extendsNewAttributeand manages attributes encountered by ASM that have had an error action specified to pack200 (for example via one of the -C, -M, -F or -D command line options such as -Cattribute-name=error)static classNewAttribute.PassAttributePassAttribute extendsNewAttributeand manages attributes encountered by ASM that have had a pass action specified to pack200 (for example via one of the -C, -M, -F or -D command line options such as -Cattribute-name=pass)static classNewAttribute.StripAttributeStripAttribute extendsNewAttributeand manages attributes encountered by ASM that have had a strip action specified to pack200 (for example via one of the -C, -M, -F or -D command line options such as -Cattribute-name=strip)
-
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 voidaddContext(int context)byte[]getBytes()org.objectweb.asm.LabelgetLabel(int index)java.lang.StringgetLayout()booleanisCodeAttribute()booleanisContextClass()booleanisContextCode()booleanisContextField()booleanisContextMethod()booleanisUnknown()booleanisUnknown(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)java.lang.StringreadClass(int index)java.lang.ObjectreadConst(int index)java.lang.StringreadUTF8(int index)
-
-
-
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:
isCodeAttributein classorg.objectweb.asm.Attribute
-
isContextClass
public boolean isContextClass()
-
isContextCode
public boolean isContextCode()
-
isContextField
public boolean isContextField()
-
isContextMethod
public boolean isContextMethod()
-
isUnknown
public boolean isUnknown()
- Overrides:
isUnknownin classorg.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:
readin classorg.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)
-
-