Class FieldVisitor

java.lang.Object
mockit.asm.BaseWriter
mockit.asm.fields.FieldVisitor

public final class FieldVisitor extends BaseWriter
A visitor to visit a Java field, in the following order: (BaseWriter.visitAnnotation(java.lang.String))* BaseWriter.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.
      Parameters:
      cw - the class writer to which this field must be added
      access - the field's access flags (see Opcodes)
      name - the field's name
      desc - the field's descriptor (see JavaType)
      signature - the field's signature
      value - the field's constant value
  • Method Details

    • getSize

      public @org.checkerframework.checker.index.qual.NonNegative int getSize()
      Returns the size of this field.
    • put

      protected void put(@NonNull ByteVector out)
      Puts the content of this field into the given byte vector.
      Overrides:
      put in class BaseWriter