public class MethodData extends MemberData
Modifier and Type | Class and Description |
---|---|
(package private) class |
MethodData.ParamNameData
MethodParamData
|
Modifier and Type | Field and Description |
---|---|
private CodeData |
code
The code data for this method.
|
protected AnnotationElement.AnnotValue |
defaultAnnotation
The invisible parameter annotations for this method
|
private int[] |
exc_table
The exception table (thrown exceptions) for this method.
|
protected ParameterAnnotationData |
invisibleParameterAnnotations
The invisible parameter annotations for this method
|
protected java.lang.String |
lP |
protected int |
name_cpx
CP index to the method name
|
protected java.util.ArrayList<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(java.io.DataInputStream in,
Tables.AttrTag attrtag,
int attrlen) |
void |
print()
Prints the method data to the current output stream.
|
private void |
printExceptionTable() |
void |
printPAnnotations()
printPAnnotations
|
void |
read(java.io.DataInputStream in)
read
read and resolve the method data called from ClassData.
|
private void |
readExceptions(java.io.DataInputStream in) |
private void |
readMethodParameters(java.io.DataInputStream in) |
getAnnotationsCount, init, printAnnotations, printVar, readAttributes
decreaseIndent, getIndentString, increaseIndent, indent, setIndent
protected int name_cpx
protected int sig_cpx
protected java.lang.String lP
protected java.util.ArrayList<MethodData.ParamNameData> paramNames
protected ParameterAnnotationData visibleParameterAnnotations
protected ParameterAnnotationData invisibleParameterAnnotations
protected AnnotationElement.AnnotValue defaultAnnotation
private CodeData code
private int[] exc_table
public MethodData(ClassData cls)
protected boolean handleAttributes(java.io.DataInputStream in, Tables.AttrTag attrtag, int attrlen) throws java.io.IOException
handleAttributes
in class MemberData
java.io.IOException
public void read(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
private void readExceptions(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
private void readMethodParameters(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public void printPAnnotations() throws java.io.IOException
prints the parameter annotations for this method. called from CodeAttr (since JASM code integrates the PAnnotation Syntax inside the method body).
java.io.IOException
public void print() throws java.io.IOException
print
in class MemberData
java.io.IOException
private void printExceptionTable()