org.objectweb.asm.util.attrs
Class ASMStackMapAttribute
java.lang.Object
org.objectweb.asm.Attribute
org.objectweb.asm.attrs.StackMapAttribute
org.objectweb.asm.util.attrs.ASMStackMapAttribute
- All Implemented Interfaces:
- ASMifiable, Traceable
- public class ASMStackMapAttribute
- extends StackMapAttribute
- implements ASMifiable, Traceable
An ASMifiable
StackMapAttribute
sub class.
- Author:
- Eugene Kuleshov
Method Summary |
protected void |
appendLabel(StringBuffer buf,
Map labelNames,
Label l)
|
void |
asmify(StringBuffer buf,
String varName,
Map labelNames)
Prints the ASM code to create an attribute equal to this attribute. |
protected Attribute |
read(ClassReader cr,
int off,
int len,
char[] buf,
int codeOff,
Label[] labels)
Reads a type attribute. |
void |
trace(StringBuffer buf,
Map labelNames)
Build a human readable representation of the attribute. |
ASMStackMapAttribute
public ASMStackMapAttribute()
ASMStackMapAttribute
public ASMStackMapAttribute(List frames,
int len)
read
protected Attribute read(ClassReader cr,
int off,
int len,
char[] buf,
int codeOff,
Label[] labels)
- Description copied from class:
Attribute
- Reads a
type
attribute. This method must return a new
Attribute
object, of type type
, corresponding to
the len bytes starting at the given offset, in the given class
reader.
- Overrides:
read
in class StackMapAttribute
asmify
public void asmify(StringBuffer buf,
String varName,
Map labelNames)
- Description copied from interface:
ASMifiable
- Prints the ASM code to create an attribute equal to this attribute.
- Specified by:
asmify
in interface ASMifiable
- Parameters:
buf
- A buffer used for printing Java code.varName
- name of the variable in a printed code used to store
attribute instance.labelNames
- map of label instances to their names.
trace
public void trace(StringBuffer buf,
Map labelNames)
- Description copied from interface:
Traceable
- Build a human readable representation of the attribute.
- Specified by:
trace
in interface Traceable
- Parameters:
buf
- A buffer used for printing Java code.labelNames
- map of label instances to their names.
appendLabel
protected void appendLabel(StringBuffer buf,
Map labelNames,
Label l)