Package javassist.bytecode
Class StackMap.Walker
java.lang.Object
javassist.bytecode.StackMap.Walker
- Enclosing class:
StackMap
A code walker for a StackMap attribute.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
locals
(int pos, int offset, int num) Invoked whenlocals
ofstack_map_frame
is visited.void
objectVariable
(int pos, int clazz) Invoked when an element of typeObject_variable_info
is visited.int
stack
(int pos, int offset, int num) Invoked whenstack
ofstack_map_frame
is visited.void
typeInfo
(int pos, byte tag) Invoked when an element ofverification_type_info
(exceptObject_variable_info
andUninitialized_variable_info
) is visited.int
typeInfoArray
(int pos, int offset, int num, boolean isLocals) Invoked when an array ofverification_type_info
is visited.void
uninitialized
(int pos, int offset) Invoked when an element of typeUninitialized_variable_info
is visited.void
visit()
Visits each entry of the stack map frames.
-
Constructor Details
-
Walker
Constructs a walker.
-
-
Method Details
-
visit
public void visit()Visits each entry of the stack map frames. -
locals
public int locals(int pos, int offset, int num) Invoked whenlocals
ofstack_map_frame
is visited. -
stack
public int stack(int pos, int offset, int num) Invoked whenstack
ofstack_map_frame
is visited. -
typeInfoArray
public int typeInfoArray(int pos, int offset, int num, boolean isLocals) Invoked when an array ofverification_type_info
is visited.- Parameters:
num
- the number of elements.isLocals
- true if this array is forlocals
. false if it is forstack
.
-
typeInfo
public void typeInfo(int pos, byte tag) Invoked when an element ofverification_type_info
(exceptObject_variable_info
andUninitialized_variable_info
) is visited. -
objectVariable
public void objectVariable(int pos, int clazz) Invoked when an element of typeObject_variable_info
is visited. -
uninitialized
public void uninitialized(int pos, int offset) Invoked when an element of typeUninitialized_variable_info
is visited.
-