Class MethodData
java.lang.Object
org.openjdk.asmtools.jdis.Indenter
org.openjdk.asmtools.jdis.MemberData
org.openjdk.asmtools.jdis.MethodData
Method data for method members in a class of the Java Disassembler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classMethodParamData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CodeDataThe code data for this method.protected AnnotationElement.AnnotValueThe invisible parameter annotations for this methodprivate int[]The exception table (thrown exceptions) for this method.protected ParameterAnnotationDataThe invisible parameter annotations for this methodprotected Stringprotected intCP index to the method nameprotected ArrayList<MethodData.ParamNameData> The parameter names for this methodprotected intCP index to the method typeprotected ParameterAnnotationDataThe visible parameter annotations for this methodFields inherited from class MemberData
access, attrs, cls, invisibleAnnotations, invisibleTypeAnnotations, isDeprecated, isSynthetic, memberType, options, out, pr_cpx, signature, visibleAnnotations, visibleTypeAnnotations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanhandleAttributes(DataInputStream in, Tables.AttrTag attrtag, int attrlen) voidprint()Prints the method data to the current output stream.private voidvoidprintPAnnotationsvoidread(DataInputStream in) read read and resolve the method data called from ClassData.private voidprivate voidMethods inherited from class MemberData
getAnnotationsCount, init, printAnnotations, printVar, readAttributesMethods inherited from class Indenter
decreaseIndent, getIndentString, increaseIndent, indent, setIndent
-
Field Details
-
name_cpx
protected int name_cpxCP index to the method name -
sig_cpx
protected int sig_cpxCP index to the method type -
lP
-
paramNames
The parameter names for this method -
visibleParameterAnnotations
The visible parameter annotations for this method -
invisibleParameterAnnotations
The invisible parameter annotations for this method -
defaultAnnotation
The invisible parameter annotations for this method -
code
The code data for this method. May be null -
exc_table
private int[] exc_tableThe exception table (thrown exceptions) for this method. May be null
-
-
Constructor Details
-
MethodData
-
-
Method Details
-
handleAttributes
protected boolean handleAttributes(DataInputStream in, Tables.AttrTag attrtag, int attrlen) throws IOException - Overrides:
handleAttributesin classMemberData- Throws:
IOException
-
read
read read and resolve the method data called from ClassData. Precondition: NumFields has already been read from the stream.- Throws:
IOException
-
readExceptions
- Throws:
IOException
-
readMethodParameters
- Throws:
IOException
-
printPAnnotations
printPAnnotationsprints the parameter annotations for this method. called from CodeAttr (since JASM code integrates the PAnnotation Syntax inside the method body).
- Throws:
IOException
-
print
Prints the method data to the current output stream. called from ClassData.- Specified by:
printin classMemberData- Throws:
IOException
-
printExceptionTable
private void printExceptionTable()
-