public class NewAttribute extends org.objectweb.asm.Attribute
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)Modifier and Type | Class and 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 an pass
action specified to pack200 (e.g. |
static class |
NewAttribute.StripAttribute
StripAttribute extends
NewAttribute and manages attributes encountered by ASM that have had an strip
action specified to pack200 (e.g. |
Constructor and Description |
---|
NewAttribute(org.objectweb.asm.ClassReader classReader,
String type,
String layout,
byte[] contents,
char[] buf,
int codeOff,
org.objectweb.asm.Label[] labels) |
NewAttribute(String type,
String layout,
int context) |
Modifier and Type | Method and Description |
---|---|
void |
addContext(int context) |
byte[] |
getBytes() |
org.objectweb.asm.Label |
getLabel(int index) |
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) |
String |
readClass(int index) |
Object |
readConst(int index) |
String |
readUTF8(int index) |
public NewAttribute(String type, String layout, int context)
public NewAttribute(org.objectweb.asm.ClassReader classReader, String type, String layout, byte[] contents, char[] buf, int codeOff, org.objectweb.asm.Label[] labels)
public void addContext(int context)
public boolean isContextClass()
public boolean isContextMethod()
public boolean isContextField()
public boolean isContextCode()
public boolean isUnknown()
isUnknown
in class org.objectweb.asm.Attribute
public boolean isCodeAttribute()
isCodeAttribute
in class org.objectweb.asm.Attribute
protected org.objectweb.asm.Attribute read(org.objectweb.asm.ClassReader cr, int off, int len, char[] buf, int codeOff, org.objectweb.asm.Label[] labels)
read
in class org.objectweb.asm.Attribute
public boolean isUnknown(int context)
public byte[] getBytes()
public org.objectweb.asm.Label getLabel(int index)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.