Top Description Inners Fields Constructors Methods
javassist.bytecode

public Class StackMapTable

extends AttributeInfo
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .DataInputStream, .DataOutputStream, .IOException, .PrintWriter, java.util.Map, javassist.CannotCompileException

stack_map attribute.

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

Since
3.4
See Also
StackMap

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
public static class
StackMapTable.RuntimeCopyException

An exception that may be thrown by copy() in StackMapTable.

pack-priv static class
pack-priv static class
pack-priv static class
public static class
StackMapTable.Walker

A code walker for a StackMapTable attribute.

public static class
StackMapTable.Writer

A writer of stack map tables.

Field Summary

Modifier and TypeField and Description
public static final int
DOUBLE

Double_variable_info.tag.

public static final int
FLOAT

Float_variable_info.tag.

public static final int
INTEGER

Integer_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
OBJECT

Object_variable_info.tag.

public static final String
tag

The name of this attribute "StackMapTable".

public static final int
THIS

UninitializedThis_variable_info.tag.

public static final int
TOP

Top_variable_info.tag.

public static final int
UNINIT

Uninitialized_variable_info.tag.

Inherited from javassist.bytecode.AttributeInfo:
constPoolinfoname

Constructor Summary

AccessConstructor and Description
pack-priv
StackMapTable(ConstPool cp, byte[] newInfo)

Constructs a stack_map attribute.

pack-priv

Method Summary

Modifier and TypeMethod and Description
public AttributeInfo
copy(ConstPool
the constant pool table used by the new copy.
newCp
,
Map<String, String>
pairs of replaced and substituted class names.
classnames
)

Overrides javassist.bytecode.AttributeInfo.copy.

Makes a copy.

public void
insertLocal(int
the index of the added local variable.
index
,
int
the type tag of that local variable.
tag
,
int
the index of the CONSTANT_Class_info structure in a constant pool table. This should be zero unless the tag is ITEM_Object.
classInfo
)

Updates this stack map table when a new local variable is inserted for a new parameter.

public void
println(PrintWriter w)

Prints the stack table map.

public void
println(PrintStream
a print stream such as System.out.
ps
)

Prints the stack table map.

public void
removeNew(int
the position of the removed NEW opcode.
where
)

Undocumented method.

pack-priv void
shiftForSwitch(int where, int gapSize)

pack-priv void
shiftPc(int where, int gapSize, boolean exclusive)

public static int
typeTagOf(char
the type descriptor.
descriptor
)

Returns the tag of the type specified by the descriptor.

pack-priv void
Inherited from javassist.bytecode.AttributeInfo:
copyAllgetgetConstPoolgetLengthgetNamegetRefClassesgetRefClasseslengthlookupreadremoverenameClassrenameClassrenameClassrenameClasssetwriteAll