public final class Method extends FieldOrMethod
| Modifier and Type | Field and Description |
|---|---|
static AnnotationGen[][] |
NO_PARAMETER_ANNOTATIONS |
static Method[] |
NoMethods |
attributes, cpool, nameIndex, signatureIndex| Constructor and Description |
|---|
Method(int access_flags,
int name_index,
int signature_index,
Attribute[] attributes,
ConstantPool constant_pool) |
Method(Method c)
Initialize from another object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ClassVisitor v) |
AnnotationGen[] |
getAnnotationsOnParameter(int i) |
Type[] |
getArgumentTypes() |
Code |
getCode() |
ExceptionTable |
getExceptionTable() |
LineNumberTable |
getLineNumberTable()
Return LineNumberTable of code attribute if any (the call is forwarded to the Code attribute)
|
LocalVariableTable |
getLocalVariableTable()
Return LocalVariableTable of code attribute if any (the call is forwarded to the Code attribute)
|
AnnotationGen[][] |
getParameterAnnotations() |
Type |
getReturnType() |
void |
setAttributes(Attribute[] attributes) |
java.lang.String |
toString()
Return string representation close to declaration format, eg: 'public static void main(String[] args) throws IOException'
|
dump, getAnnotations, getAttributes, getConstantPool, getDeclaredSignature, getGenericSignature, getName, getNameIndex, getSignature, getSignatureIndexgetModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifierspublic static final AnnotationGen[][] NO_PARAMETER_ANNOTATIONS
public static final Method[] NoMethods
public Method(Method c)
public Method(int access_flags,
int name_index,
int signature_index,
Attribute[] attributes,
ConstantPool constant_pool)
public void accept(ClassVisitor v)
public void setAttributes(Attribute[] attributes)
setAttributes in class FieldOrMethodattributes - Collection of object attributes.public final Code getCode()
public final ExceptionTable getExceptionTable()
public final LocalVariableTable getLocalVariableTable()
public final LineNumberTable getLineNumberTable()
public final java.lang.String toString()
toString in class java.lang.Objectpublic Type getReturnType()
public Type[] getArgumentTypes()
public AnnotationGen[] getAnnotationsOnParameter(int i)
public AnnotationGen[][] getParameterAnnotations()