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(String))* BaseWriter.visitEnd().-
Field Summary
Fields inherited from class 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@NonNegative intgetSize()Returns the size of this field.protected voidput(ByteVector out) Puts the content of this field into the given byte vector.Methods inherited from class 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 @NonNegative int getSize()Returns the size of this field. -
put
Puts the content of this field into the given byte vector.- Overrides:
putin classBaseWriter
-