Class MethodReader
java.lang.Object
mockit.asm.util.BytecodeReader
mockit.asm.AnnotatedReader
mockit.asm.methods.MethodReader
-
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 method and constructor in the class, making the class reader's 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
-
MethodReader
-
-
Method Details
-
readMethods
public @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: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")
-