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.AnnotValueThe invisible parameter annotations for this methodprotected ParameterAnnotationDataThe invisible parameter annotations for this methodprotected Stringprotected intCP index to the method nameprotected ArrayList<org.openjdk.asmtools.jdis.MethodData.ParamNameData>The parameter names for this methodprotected intCP index to the method typeprotected ParameterAnnotationDataThe 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 booleanhandleAttributes(DataInputStream in, Tables.AttrTag attrtag, int attrlen) voidprint()Prints the method data to the current output stream. called from ClassData.voidprintPAnnotationsvoidread(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, readAttributesMethods 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:
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
-
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
-