Klasse Method
java.lang.Object
org.aspectj.apache.bcel.classfile.Modifiers
org.aspectj.apache.bcel.classfile.FieldOrMethod
org.aspectj.apache.bcel.classfile.Method
- Alle implementierten Schnittstellen:
Node
This class represents the method info structure, i.e., the representation for a method in the class. See JVM specification for
details. A method has access flags, a name, a signature and a number of attributes.
- Version:
- $Id: Method.java,v 1.11 2009/09/15 19:40:12 aclement Exp $
- Autor:
- M. Dahm
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.apache.bcel.classfile.FieldOrMethod
attributes, cpool, nameIndex, signatureIndex
-
Konstruktorübersicht
KonstruktorBeschreibungMethod
(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) Initialize from another object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
getAnnotationsOnParameter
(int i) Type[]
final Code
getCode()
final ExceptionTable
final LineNumberTable
Return LineNumberTable of code attribute if any (the call is forwarded to the Code attribute)final LocalVariableTable
Return LocalVariableTable of code attribute if any (the call is forwarded to the Code attribute)AnnotationGen[][]
void
setAttributes
(Attribute[] attributes) final String
toString()
Return string representation close to declaration format, eg: 'public static void main(String[] args) throws IOException'Von Klasse geerbte Methoden org.aspectj.apache.bcel.classfile.FieldOrMethod
dump, getAnnotations, getAttributes, getConstantPool, getDeclaredSignature, getGenericSignature, getName, getNameIndex, getSignature, getSignatureIndex
Von Klasse geerbte Methoden org.aspectj.apache.bcel.classfile.Modifiers
getModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifiers
-
Felddetails
-
NO_PARAMETER_ANNOTATIONS
-
NoMethods
-
-
Konstruktordetails
-
Method
Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy. -
Method
public Method(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)
-
-
Methodendetails
-
accept
-
setAttributes
- Setzt außer Kraft:
setAttributes
in KlasseFieldOrMethod
- Parameter:
attributes
- Collection of object attributes.
-
getCode
- Gibt zurück:
- Code attribute of method, if any
-
getExceptionTable
-
getLocalVariableTable
Return LocalVariableTable of code attribute if any (the call is forwarded to the Code attribute) -
getLineNumberTable
Return LineNumberTable of code attribute if any (the call is forwarded to the Code attribute) -
toString
Return string representation close to declaration format, eg: 'public static void main(String[] args) throws IOException' -
getReturnType
- Gibt zurück:
- return type of method
-
getArgumentTypes
- Gibt zurück:
- array of method argument types
-
getAnnotationsOnParameter
-
getParameterAnnotations
-