JML

java.lang.reflect
Class Method

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

public final class Method
extends AccessibleObject
implements Member


Field Summary
private  Class clazz
           
private  Class[] exceptionTypes
           
private  sun.reflect.MethodAccessor methodAccessor
           
private  int modifiers
           
private  String name
           
private  Class[] parameterTypes
           
private  Class returnType
           
private  Method root
           
private  Class securityCheckTargetClassCache
           
private  int slot
           
 
Fields inherited from class java.lang.reflect.AccessibleObject
override, reflectionFactory, securityCheckCache
 
Fields inherited from interface java.lang.reflect.Member
DECLARED, PUBLIC
 
Constructor Summary
(package private) Method(Class, String, Class[], Class, Class[], int, int)
           
 
Method Summary
private  void acquireMethodAccessor()
           
(package private)  Method copy()
           
(package private) static Class[] copy(Class[])
           
 boolean equals(Object)
           
 Class getDeclaringClass()
           
 Class[] getExceptionTypes()
           
(package private)  sun.reflect.MethodAccessor getMethodAccessor()
           
 int getModifiers()
           
 String getName()
           
 Class[] getParameterTypes()
           
 Class getReturnType()
           
 int hashCode()
           
 Object invoke(Object, Object[])
           
(package private)  void setMethodAccessor(sun.reflect.MethodAccessor)
           
 String toString()
           
 
Methods inherited from class java.lang.reflect.AccessibleObject
isAccessible, setAccessible, setAccessible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

securityCheckTargetClassCache

private volatile Class securityCheckTargetClassCache

name

private String name

clazz

private Class clazz

returnType

private Class returnType

exceptionTypes

private Class[] exceptionTypes

root

private Method root

methodAccessor

private volatile sun.reflect.MethodAccessor methodAccessor

slot

private int slot

modifiers

private int modifiers

parameterTypes

private Class[] parameterTypes
Constructor Detail

Method

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

getModifiers

public int getModifiers()
Specified by:
getModifiers in interface Member

hashCode

public int hashCode()
Overrides:
hashCode in class Object

acquireMethodAccessor

private void acquireMethodAccessor()

getDeclaringClass

public Class getDeclaringClass()
Specified by:
getDeclaringClass in interface Member

getReturnType

public Class getReturnType()

getExceptionTypes

public Class[] getExceptionTypes()

getParameterTypes

public Class[] getParameterTypes()

equals

public boolean equals(Object)
Overrides:
equals in class Object

getName

public String getName()
Specified by:
getName in interface Member

toString

public String toString()
Overrides:
toString in class Object

copy

Method copy()

getMethodAccessor

sun.reflect.MethodAccessor getMethodAccessor()

setMethodAccessor

void setMethodAccessor(sun.reflect.MethodAccessor)

copy

static Class[] copy(Class[])

invoke

public Object invoke(Object,
                     Object[])
              throws IllegalAccessException,
                     IllegalArgumentException,
                     InvocationTargetException
Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException

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.