Package mockit.asm.controlFlow
Class StackMapTableWriter
java.lang.Object
mockit.asm.constantPool.AttributeWriter
mockit.asm.controlFlow.StackMapTableWriter
Writes the "StackMapTable" method attribute (or "StackMap" for classfiles older than Java 6).
-
Field Summary
Fields inherited from class mockit.asm.constantPool.AttributeWriter
attributeIndex, cp
-
Constructor Summary
ConstructorsConstructorDescriptionStackMapTableWriter
(ConstantPoolGeneration cp, boolean java6OrNewer, int methodAccess, String methodDesc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createAndVisitFirstFrame
(Frame frame, String classDesc, String methodDesc, int methodAccess) Creates and visits the first (implicit) frame.@org.checkerframework.checker.index.qual.NonNegative int
getSize()
boolean
void
put
(ByteVector out) void
void
setMaxStack
(@org.checkerframework.checker.index.qual.NonNegative int maxStack) void
updateMaxLocals
(@org.checkerframework.checker.index.qual.NonNegative int n) void
visitFrame
(Frame frame) Visits a frame that has been computed from scratch.Methods inherited from class mockit.asm.constantPool.AttributeWriter
put, setAttribute
-
Constructor Details
-
StackMapTableWriter
public StackMapTableWriter(@NonNull ConstantPoolGeneration cp, boolean java6OrNewer, int methodAccess, @NonNull String methodDesc)
-
-
Method Details
-
setMaxStack
public void setMaxStack(@org.checkerframework.checker.index.qual.NonNegative int maxStack) -
updateMaxLocals
public void updateMaxLocals(@org.checkerframework.checker.index.qual.NonNegative int n) -
putMaxStackAndLocals
-
hasStackMap
public boolean hasStackMap() -
createAndVisitFirstFrame
public void createAndVisitFirstFrame(@NonNull Frame frame, @NonNull String classDesc, @NonNull String methodDesc, int methodAccess) Creates and visits the first (implicit) frame. -
visitFrame
Visits a frame that has been computed from scratch. -
getSize
public @org.checkerframework.checker.index.qual.NonNegative int getSize()- Specified by:
getSize
in classAttributeWriter
-
put
- Overrides:
put
in classAttributeWriter
-