Package org.openjdk.asmtools.jdis
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) class
MethodParamData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CodeData
The code data for this method.protected AnnotationElement.AnnotValue
The invisible parameter annotations for this methodprivate int[]
The exception table (thrown exceptions) for this method.protected ParameterAnnotationData
The invisible parameter annotations for this methodprotected String
protected int
CP index to the method nameprotected ArrayList<MethodData.ParamNameData>
The parameter names for this methodprotected int
CP index to the method typeprotected ParameterAnnotationData
The visible parameter annotations for this methodFields inherited from class org.openjdk.asmtools.jdis.MemberData
access, attrs, cls, invisibleAnnotations, invisibleTypeAnnotations, isDeprecated, isSynthetic, memberType, options, out, pr_cpx, signature, visibleAnnotations, visibleTypeAnnotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
handleAttributes
(DataInputStream in, Tables.AttrTag attrtag, int attrlen) void
print()
Prints the method data to the current output stream.private void
void
printPAnnotationsvoid
read
(DataInputStream in) read read and resolve the method data called from ClassData.private void
private void
Methods inherited from class org.openjdk.asmtools.jdis.MemberData
getAnnotationsCount, init, printAnnotations, printVar, readAttributes
Methods inherited from class org.openjdk.asmtools.jdis.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:
handleAttributes
in 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:
print
in classMemberData
- Throws:
IOException
-
printExceptionTable
private void printExceptionTable()
-