public class StackMap extends AttributeInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
StackMap.Walker
A code walker for a StackMap attribute.
|
static class |
StackMap.Writer
Internal use only.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DOUBLE
Double_variable_info.tag. |
static int |
FLOAT
Float_variable_info.tag. |
static int |
INTEGER
Integer_variable_info.tag. |
static int |
LONG
Long_variable_info.tag. |
static int |
NULL
Null_variable_info.tag. |
static int |
OBJECT
Object_variable_info.tag. |
static String |
tag
The name of this attribute
"StackMap". |
static int |
THIS
UninitializedThis_variable_info.tag. |
static int |
TOP
Top_variable_info.tag. |
static int |
UNINIT
Uninitialized_variable_info.tag. |
constPool, info, name| Modifier and Type | Method and Description |
|---|---|
AttributeInfo |
copy(ConstPool newCp,
Map<?,?> classnames)
Makes a copy.
|
void |
insertLocal(int index,
int tag,
int classInfo)
Updates this stack map table when a new local variable is inserted
for a new parameter.
|
int |
numOfEntries()
Returns
number_of_entries. |
void |
print(PrintWriter out)
Prints this stack map.
|
void |
removeNew(int where)
Undocumented method.
|
void |
shiftPc(int where,
int gapSize,
boolean exclusive) |
copyAll, get, getConstPool, getLength, getName, length, lookup, read, remove, renameClass, renameClass, set, writeAllpublic static final String tag
"StackMap".public static final int TOP
Top_variable_info.tag.public static final int INTEGER
Integer_variable_info.tag.public static final int FLOAT
Float_variable_info.tag.public static final int DOUBLE
Double_variable_info.tag.public static final int LONG
Long_variable_info.tag.public static final int NULL
Null_variable_info.tag.public static final int THIS
UninitializedThis_variable_info.tag.public static final int OBJECT
Object_variable_info.tag.public static final int UNINIT
Uninitialized_variable_info.tag.public int numOfEntries()
number_of_entries.public AttributeInfo copy(ConstPool newCp, Map<?,?> classnames)
copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
class names.public void insertLocal(int index,
int tag,
int classInfo)
throws BadBytecode
index - the index of the added local variable.tag - the type tag of that local variable.
It is available by StackMapTable.typeTagOf(char).classInfo - the index of the CONSTANT_Class_info structure
in a constant pool table. This should be zero unless the tag
is ITEM_Object.BadBytecodejavassist.CtBehavior#addParameter(javassist.CtClass),
StackMapTable.typeTagOf(char),
ConstPoolpublic void shiftPc(int where,
int gapSize,
boolean exclusive)
throws BadBytecode
BadBytecodepublic void removeNew(int where)
throws CannotCompileException
This method is for javassist.convert.TransformNew. It is called to update the stack map when the NEW opcode (and the following DUP) is removed.
where - the position of the removed NEW opcode.CannotCompileExceptionpublic void print(PrintWriter out)
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.