JML

java.lang.reflect
Class Method

java.lang.Object
  extended byjava.lang.reflect.AccessibleObject
      extended byjava.lang.reflect.Method
All Implemented Interfaces:
AnnotatedElement, GenericDeclaration, Member

public final class Method
extends AccessibleObject
implements GenericDeclaration, Member


Field Summary
private  byte[] annotationDefault
           
private  byte[] annotations
           
private  Class clazz
           
private  Map declaredAnnotations
           
private static Annotation[] EMPTY_ANNOTATION_ARRAY
           
private  Class[] exceptionTypes
           
private  sun.reflect.generics.repository.MethodRepository genericInfo
           
private static int LANGUAGE_MODIFIERS
           
private  sun.reflect.MethodAccessor methodAccessor
           
private  int modifiers
           
private  String name
           
private  byte[] parameterAnnotations
           
private  Class[] parameterTypes
           
private  Class returnType
           
private  Method root
           
private  Class securityCheckCache
           
private  Class securityCheckTargetClassCache
           
private  String signature
           
private  int slot
           
 
Fields inherited from class java.lang.reflect.AccessibleObject
override, reflectionFactory
 
Fields inherited from interface java.lang.reflect.Member
DECLARED, PUBLIC
 
Constructor Summary
(package private) Method(Class, String, Class[], Class, Class[], int, int, String, byte[], byte[], byte[])
           
 
Method Summary
private  void acquireMethodAccessor()
           
(package private)  Method copy()
           
private  Map declaredAnnotations()
           
 boolean equals(Object)
           
 Annotation getAnnotation(Class)
           
 Annotation[] getDeclaredAnnotations()
           
 Class getDeclaringClass()
           
 Object getDefaultValue()
           
 Class[] getExceptionTypes()
           
private  sun.reflect.generics.factory.GenericsFactory getFactory()
           
 Type[] getGenericExceptionTypes()
           
private  sun.reflect.generics.repository.MethodRepository getGenericInfo()
           
 Type[] getGenericParameterTypes()
           
 Type getGenericReturnType()
           
private  String getGenericSignature()
           
(package private)  sun.reflect.MethodAccessor getMethodAccessor()
           
 int getModifiers()
           
 String getName()
           
 Annotation[][] getParameterAnnotations()
           
 Class[] getParameterTypes()
           
 Class getReturnType()
           
 TypeVariable[] getTypeParameters()
           
 int hashCode()
           
 Object invoke(Object, Object[])
           
 boolean isBridge()
           
 boolean isSynthetic()
           
 boolean isVarArgs()
           
(package private)  void setMethodAccessor(sun.reflect.MethodAccessor)
           
 String toGenericString()
           
 String toString()
           
 
Methods inherited from class java.lang.reflect.AccessibleObject
getAnnotations, isAccessible, isAnnotationPresent, setAccessible, setAccessible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Method

Method(Class,
       String,
       Class[],
       Class,
       Class[],
       int,
       int,
       String,
       byte[],
       byte[],
       byte[])
Method Detail

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

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.