Class FieldReader
java.lang.Object
mockit.asm.util.BytecodeReader
mockit.asm.AnnotatedReader
mockit.asm.fields.FieldReader
-
Field Summary
Fields inherited from class AnnotatedReader
access, signatureFields inherited from class BytecodeReader
code, codeIndex, items -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleanreadAttribute(String attributeName) Attempts to read the next attribute, provided it's one recognizable by the implementing subclass.@NonNegative intReads each field and makes the given visitor visit it.Methods inherited from class AnnotatedReader
readAnnotations, readAnnotationValues, readAttributesMethods inherited from class BytecodeReader
readBoolean, readChar, readClass, readConst, readConstItem, readConstItem, readDouble, readDouble, readFloat, readFloat, readInt, readInt, readItem, readItem, readLong, readLong, readMethodHandle, readMethodHandleItem, readNonnullClass, readNonnullClass, readNonnullUTF8, readNonnullUTF8, readShort, readShort, readSignedByte, readString, readUnsignedByte, readUnsignedByte, readUnsignedShort, readUnsignedShort, readUTF8, readUTF8
-
Constructor Details
-
FieldReader
-
-
Method Details
-
readFields
public @NonNegative int readFields()Reads each field and makes the given visitor visit it.- Returns:
- the offset of the first byte following the last field in the class.
-
readAttribute
Description copied from class:AnnotatedReaderAttempts to read the next attribute, provided it's one recognizable by the implementing subclass.- Specified by:
readAttributein classAnnotatedReader- Parameters:
attributeName- the attribute name- Returns:
trueifBytecodeReader.codeIndexis already pointing to the next attribute in the classfile,falseornullotherwise; in the case ofnull, the current attribute was not yet identified, but is one of the more general ones ("RuntimeVisibleAnnotations", "Deprecated", or "Synthetic")
-