public class MethodData extends MemberData
Modifier and Type | Field and Description |
---|---|
protected AnnotationElement.AnnotValue |
defaultAnnotation
The invisible parameter annotations for this method
|
protected ParameterAnnotationData |
invisibleParameterAnnotations
The invisible parameter annotations for this method
|
protected String |
lP |
protected int |
name_cpx
CP index to the method name
|
protected ArrayList<org.openjdk.asmtools.jdis.MethodData.ParamNameData> |
paramNames
The parameter names for this method
|
protected int |
sig_cpx
CP index to the method type
|
protected ParameterAnnotationData |
visibleParameterAnnotations
The visible parameter annotations for this method
|
access, attrs, cls, invisibleAnnotations, invisibleTypeAnnotations, isDeprecated, isSynthetic, memberType, options, out, pr_cpx, signature, visibleAnnotations, visibleTypeAnnotations
Constructor and Description |
---|
MethodData(ClassData cls) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
handleAttributes(DataInputStream in,
Tables.AttrTag attrtag,
int attrlen) |
void |
print()
Prints the method data to the current output stream.
|
void |
printPAnnotations()
printPAnnotations
|
void |
read(DataInputStream in)
read
read and resolve the method data called from ClassData.
|
getAnnotationsCount, init, printAnnotations, printVar, readAttributes
decreaseIndent, getIndentString, increaseIndent, indent, setIndent
protected int name_cpx
protected int sig_cpx
protected String lP
protected ArrayList<org.openjdk.asmtools.jdis.MethodData.ParamNameData> paramNames
protected ParameterAnnotationData visibleParameterAnnotations
protected ParameterAnnotationData invisibleParameterAnnotations
protected AnnotationElement.AnnotValue defaultAnnotation
public MethodData(ClassData cls)
protected boolean handleAttributes(DataInputStream in, Tables.AttrTag attrtag, int attrlen) throws IOException
handleAttributes
in class MemberData
IOException
public void read(DataInputStream in) throws IOException
IOException
public void printPAnnotations() throws IOException
prints the parameter annotations for this method. called from CodeAttr (since JASM code integrates the PAnnotation Syntax inside the method body).
IOException
public void print() throws IOException
print
in class MemberData
IOException
Copyright © 2021. All Rights Reserved.