java.lang.reflect
Class Method
java.lang.Object
java.lang.reflect.AccessibleObject
java.lang.reflect.Method
- All Implemented Interfaces:
- AnnotatedElement, GenericDeclaration, Member
- public final class Method
- extends AccessibleObject
- implements GenericDeclaration, Member
|
Constructor Summary |
(package private) |
Method(Class,
String,
Class[],
Class,
Class[],
int,
int,
String,
byte[],
byte[],
byte[])
|
exceptionTypes
private Class[] exceptionTypes
LANGUAGE_MODIFIERS
private static final int LANGUAGE_MODIFIERS
methodAccessor
private volatile sun.reflect.MethodAccessor methodAccessor
annotations
private byte[] annotations
signature
private transient String signature
modifiers
private int modifiers
annotationDefault
private byte[] annotationDefault
slot
private int slot
clazz
private Class clazz
securityCheckTargetClassCache
private Class securityCheckTargetClassCache
parameterAnnotations
private byte[] parameterAnnotations
name
private String name
EMPTY_ANNOTATION_ARRAY
private static final Annotation[] EMPTY_ANNOTATION_ARRAY
declaredAnnotations
private transient Map declaredAnnotations
securityCheckCache
private Class securityCheckCache
root
private Method root
returnType
private Class returnType
genericInfo
private transient sun.reflect.generics.repository.MethodRepository genericInfo
parameterTypes
private Class[] parameterTypes
Method
Method(Class,
String,
Class[],
Class,
Class[],
int,
int,
String,
byte[],
byte[],
byte[])
getGenericSignature
private String getGenericSignature()
getFactory
private sun.reflect.generics.factory.GenericsFactory getFactory()
getGenericInfo
private sun.reflect.generics.repository.MethodRepository getGenericInfo()
copy
Method copy()
getDeclaringClass
public Class getDeclaringClass()
- Specified by:
getDeclaringClass in interface Member
getName
public String getName()
- Specified by:
getName in interface Member
getModifiers
public int getModifiers()
- Specified by:
getModifiers in interface Member
getTypeParameters
public TypeVariable[] getTypeParameters()
- Specified by:
getTypeParameters in interface GenericDeclaration
getReturnType
public Class getReturnType()
getGenericReturnType
public Type getGenericReturnType()
getParameterTypes
public Class[] getParameterTypes()
getGenericParameterTypes
public Type[] getGenericParameterTypes()
getExceptionTypes
public Class[] getExceptionTypes()
getGenericExceptionTypes
public Type[] getGenericExceptionTypes()
equals
public boolean equals(Object)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
toGenericString
public String toGenericString()
invoke
public transient Object invoke(Object,
Object[])
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException
isBridge
public boolean isBridge()
isVarArgs
public boolean isVarArgs()
isSynthetic
public boolean isSynthetic()
- Specified by:
isSynthetic in interface Member
acquireMethodAccessor
private void acquireMethodAccessor()
getMethodAccessor
sun.reflect.MethodAccessor getMethodAccessor()
setMethodAccessor
void setMethodAccessor(sun.reflect.MethodAccessor)
getAnnotation
public Annotation getAnnotation(Class)
- Specified by:
getAnnotation in interface AnnotatedElement- Overrides:
getAnnotation in class AccessibleObject
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations in interface AnnotatedElement- Overrides:
getDeclaredAnnotations in class AccessibleObject
declaredAnnotations
private Map declaredAnnotations()
getDefaultValue
public Object getDefaultValue()
getParameterAnnotations
public Annotation[][] getParameterAnnotations()
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.