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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnnotationElement.AnnotValue
The invisible parameter annotations for this methodprotected ParameterAnnotationData
The invisible parameter annotations for this methodprotected String
protected int
CP index to the method nameprotected ArrayList
<org.openjdk.asmtools.jdis.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. called from ClassData.void
printPAnnotationsvoid
read
(DataInputStream in) read read and resolve the method data called from ClassData.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
-
-
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
-
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
-