java.lang.Object
org.objectweb.asm.Attribute
kala.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)-
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
FieldsModifier and TypeFieldDescriptionprivate char[]private org.objectweb.asm.ClassReaderprivate intprivate byte[]private booleanprivate booleanprivate booleanprivate booleanprivate org.objectweb.asm.Label[]private final StringFields 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, read, readLabel, write, write
-
Field Details
-
contextClass
private boolean contextClass -
contextMethod
private boolean contextMethod -
contextField
private boolean contextField -
contextCode
private boolean contextCode -
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 Details
-
NewAttribute
-
NewAttribute
-
-
Method Details
-
addContext
public void addContext(int context) -
getBytes
public byte[] getBytes() -
getLabel
public org.objectweb.asm.Label getLabel(int index) -
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
-
readConst
-
readUTF8
-