javassist.bytecode

Class StackMapTable

public class StackMapTable extends AttributeInfo

stack_map attribute.

This is an entry in the attributes table of a Code attribute. It was introduced by J2SE 6 for the process of verification by typechecking.

Since: 3.4

Nested Class Summary
static classStackMapTable.RuntimeCopyException
An exception that may be thrown by copy() in StackMapTable.
static classStackMapTable.Walker
A code walker for a StackMapTable attribute.
static classStackMapTable.Writer
A writer of stack map tables.
Field Summary
static intDOUBLE
Double_variable_info.tag.
static intFLOAT
Float_variable_info.tag.
static intINTEGER
Integer_variable_info.tag.
static intLONG
Long_variable_info.tag.
static intNULL
Null_variable_info.tag.
static intOBJECT
Object_variable_info.tag.
static Stringtag
The name of this attribute "StackMapTable".
static intTHIS
UninitializedThis_variable_info.tag.
static intTOP
Top_variable_info.tag.
static intUNINIT
Uninitialized_variable_info.tag.
Method Summary
AttributeInfocopy(ConstPool newCp, Map classnames)
Makes a copy.
voidremoveNew(int where)
Undocumented method.

Field Detail

DOUBLE

public static final int DOUBLE
Double_variable_info.tag.

FLOAT

public static final int FLOAT
Float_variable_info.tag.

INTEGER

public static final int INTEGER
Integer_variable_info.tag.

LONG

public static final int LONG
Long_variable_info.tag.

NULL

public static final int NULL
Null_variable_info.tag.

OBJECT

public static final int OBJECT
Object_variable_info.tag.

tag

public static final String tag
The name of this attribute "StackMapTable".

THIS

public static final int THIS
UninitializedThis_variable_info.tag.

TOP

public static final int TOP
Top_variable_info.tag.

UNINIT

public static final int UNINIT
Uninitialized_variable_info.tag.

Method Detail

copy

public AttributeInfo copy(ConstPool newCp, Map classnames)
Makes a copy.

Throws: RuntimeCopyException if a BadBytecode exception is thrown while copying, it is converted into RuntimeCopyException.

removeNew

public void removeNew(int where)
Undocumented method. Do not use; internal-use only.

This method is for javassist.convert.TransformNew. It is called to update the stack map table when the NEW opcode (and the following DUP) is removed.

Parameters: where the position of the removed NEW opcode.

Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.