public final class Method extends AccessibleObject implements Member
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Default object equality (is identity).
|
Class |
getDeclaringClass() |
Class[] |
getExceptionTypes() |
int |
getModifiers() |
String |
getName() |
Class[] |
getParameterTypes() |
Class |
getReturnType() |
int |
hashCode()
The (default) object hashcode: for transient objects this is simply the
address of the instance in memory, for persistent objects it is the
address at which the instance was first created (maybe in a previous
activation of the VM).
|
Object |
invoke(Object obj,
Object[] args) |
String |
toString()
Default String representation: overriden by many classes.
|
isAccessible, setAccessible, setAccessible
public Class getDeclaringClass()
getDeclaringClass
in interface Member
public int getModifiers()
getModifiers
in interface Member
public Class getReturnType()
public Class[] getParameterTypes()
public Class[] getExceptionTypes()
public boolean equals(Object obj)
Object
public String toString()
Object
public int hashCode()
Object
public Object invoke(Object obj, Object[] args) throws NullPointerException, IllegalArgumentException, IllegalAccessException, InvocationTargetException