Package mockit.asm.fields
Class FieldReader
java.lang.Object
mockit.asm.util.BytecodeReader
mockit.asm.AnnotatedReader
mockit.asm.fields.FieldReader
-
Field Summary
Fields inherited from class mockit.asm.AnnotatedReader
access, signature
Fields inherited from class mockit.asm.util.BytecodeReader
code, codeIndex, items
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
readAttribute
(String attributeName) Attempts to read the next attribute, provided it's one recognizable by the implementing subclass.@org.checkerframework.checker.index.qual.NonNegative int
Reads each field and makes the given visitor visit it.Methods inherited from class mockit.asm.AnnotatedReader
readAnnotations, readAnnotationValues, readAttributes
Methods inherited from class mockit.asm.util.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 @org.checkerframework.checker.index.qual.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:AnnotatedReader
Attempts to read the next attribute, provided it's one recognizable by the implementing subclass.- Specified by:
readAttribute
in classAnnotatedReader
- Parameters:
attributeName
- the attribute name- Returns:
true
ifBytecodeReader.codeIndex
is already pointing to the next attribute in the classfile,false
ornull
otherwise; in the case ofnull
, the current attribute was not yet identified, but is one of the more general ones ("RuntimeVisibleAnnotations", "Deprecated", or "Synthetic")
-