Package mockit.asm.fields
Class FieldVisitor
java.lang.Object
mockit.asm.BaseWriter
mockit.asm.fields.FieldVisitor
A visitor to visit a Java field, in the following order: (
BaseWriter.visitAnnotation(java.lang.String)
)* BaseWriter.visitEnd()
.-
Field Summary
Fields inherited from class mockit.asm.BaseWriter
annotations, classOrMemberAccess, cp
-
Constructor Summary
ConstructorsConstructorDescriptionFieldVisitor
(ClassWriter cw, int access, String name, String desc, String signature, Object value) Initializes a new field visitor. -
Method Summary
Modifier and TypeMethodDescription@org.checkerframework.checker.index.qual.NonNegative int
getSize()
Returns the size of this field.protected void
put
(ByteVector out) Puts the content of this field into the given byte vector.Methods inherited from class mockit.asm.BaseWriter
createMarkerAttributes, getAnnotationsSize, getConstantPoolGeneration, getMarkerAttributeCount, getMarkerAttributesSize, put, putAccess, putAnnotations, putMarkerAttributes, visitAnnotation, visitEnd
-
Constructor Details
-
FieldVisitor
public FieldVisitor(@NonNull ClassWriter cw, int access, @NonNull String name, @NonNull String desc, @Nullable String signature, @Nullable Object value) Initializes a new field visitor.
-
-
Method Details
-
getSize
public @org.checkerframework.checker.index.qual.NonNegative int getSize()Returns the size of this field. -
put
Puts the content of this field into the given byte vector.- Overrides:
put
in classBaseWriter
-