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 AttributeWriter
attributeIndex, cp -
Constructor Summary
ConstructorsConstructorDescriptionStackMapTableWriter(ConstantPoolGeneration cp, boolean java6OrNewer, int methodAccess, String methodDesc) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAndVisitFirstFrame(Frame frame, String classDesc, String methodDesc, int methodAccess) Creates and visits the first (implicit) frame.@NonNegative intgetSize()booleanvoidput(ByteVector out) voidvoidsetMaxStack(@NonNegative int maxStack) voidupdateMaxLocals(@NonNegative int n) voidvisitFrame(Frame frame) Visits a frame that has been computed from scratch.Methods inherited from class AttributeWriter
put, setAttribute
-
Constructor Details
-
StackMapTableWriter
public StackMapTableWriter(@NonNull ConstantPoolGeneration cp, boolean java6OrNewer, int methodAccess, @NonNull String methodDesc)
-
-
Method Details
-
setMaxStack
public void setMaxStack(@NonNegative int maxStack) -
updateMaxLocals
public void updateMaxLocals(@NonNegative int n) -
putMaxStackAndLocals
-
hasStackMap
public boolean hasStackMap() -
createAndVisitFirstFrame
-
visitFrame
Visits a frame that has been computed from scratch. -
getSize
public @NonNegative int getSize()- Specified by:
getSizein classAttributeWriter
-
put
- Overrides:
putin classAttributeWriter
-