Package mockit.asm.methods
Class MethodReader
java.lang.Object
mockit.asm.util.BytecodeReader
mockit.asm.AnnotatedReader
mockit.asm.methods.MethodReader
-
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 method and constructor in the class, making the class reader's 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
-
MethodReader
-
-
Method Details
-
readMethods
public @org.checkerframework.checker.index.qual.NonNegative int readMethods()Reads each method and constructor in the class, making the class reader's visitor visit it.- Returns:
- the offset of the first byte following the last method 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")
-