public class StackMappingVisitor extends java.lang.Object implements MethodVisitor
| Constructor and Description |
|---|
StackMappingVisitor() |
StackMappingVisitor(MethodVisitor innerVisitor) |
| Modifier and Type | Method and Description |
|---|---|
Frame |
buildFrame() |
boolean |
canVisitBody() |
protected FrameValue |
get(int local) |
java.util.Map<Instruction,TypeReference> |
getInitializations() |
int |
getLocalCount() |
FrameValue[] |
getLocalsSnapshot() |
FrameValue |
getLocalValue(int slot) |
int |
getStackSize() |
FrameValue[] |
getStackSnapshot() |
FrameValue |
getStackValue(int offset) |
protected void |
initialize(FrameValue value,
TypeReference type) |
protected FrameValue |
peek() |
protected FrameValue |
pop() |
protected void |
pop(int count) |
void |
pruneLocals() |
protected void |
push(FrameValue value) |
protected void |
push(TypeReference type) |
protected void |
set(int local,
FrameValue value) |
protected void |
set(int local,
TypeReference type) |
void |
visitAnnotation(CustomAnnotation annotation,
boolean visible) |
void |
visitAttribute(SourceAttribute attribute) |
InstructionVisitor |
visitBody(MethodBody body) |
void |
visitEnd() |
void |
visitFrame(Frame frame) |
void |
visitLineNumber(Instruction instruction,
int lineNumber) |
void |
visitParameterAnnotation(int parameter,
CustomAnnotation annotation,
boolean visible) |
public StackMappingVisitor()
public StackMappingVisitor(MethodVisitor innerVisitor)
public final Frame buildFrame()
public final int getStackSize()
public final int getLocalCount()
public final FrameValue getStackValue(int offset)
public final FrameValue getLocalValue(int slot)
public final java.util.Map<Instruction,TypeReference> getInitializations()
public final FrameValue[] getStackSnapshot()
public final FrameValue[] getLocalsSnapshot()
public boolean canVisitBody()
canVisitBody in interface MethodVisitorpublic InstructionVisitor visitBody(MethodBody body)
visitBody in interface MethodVisitorpublic void visitEnd()
visitEnd in interface MethodVisitorpublic void visitFrame(Frame frame)
visitFrame in interface MethodVisitorpublic void visitLineNumber(Instruction instruction, int lineNumber)
visitLineNumber in interface MethodVisitorpublic void visitAttribute(SourceAttribute attribute)
visitAttribute in interface MethodVisitorpublic void visitAnnotation(CustomAnnotation annotation, boolean visible)
visitAnnotation in interface MethodVisitorpublic void visitParameterAnnotation(int parameter,
CustomAnnotation annotation,
boolean visible)
visitParameterAnnotation in interface MethodVisitorprotected final FrameValue get(int local)
protected final void set(int local,
FrameValue value)
protected final void set(int local,
TypeReference type)
protected final FrameValue pop()
protected final FrameValue peek()
protected final void pop(int count)
protected final void push(TypeReference type)
protected final void push(FrameValue value)
protected void initialize(FrameValue value, TypeReference type)
public void pruneLocals()