java.lang.Object | |
↳ | sun.swing.AccessibleMethod |
A utility for accessing and invoking methods, via reflection, that would otherwise be unaccessible.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct an instance for the given params.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoke the method that this object represents.
| |||||||||||
Invoke the method that this object represents, with the
expectation that the method being called throws no
checked exceptions.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Construct an instance for the given params.
klass | the class to which the method belongs |
---|---|
methodName | the name of the method |
paramTypes | the paramater type array |
NullPointerException | if klass
or name is null |
---|---|
NoSuchMethodException | if the method can't be found |
Invoke the method that this object represents.
Has the same behavior and throws the same exceptions as
java.lang.reflect.Method.invoke
with one
exception: This method does not throw
IllegalAccessException
since the target
method has already been made accessible.
obj | the object the underlying method is invoked from |
---|---|
args | the arguments used for the method call |
obj
with parameters
args
Invoke the method that this object represents, with the expectation that the method being called throws no checked exceptions.
Simply calls this.invoke(obj, args)
but catches any InvocationTargetException
and returns the cause wrapped in a runtime exception.
obj | the object the underlying method is invoked from |
---|---|
args | the arguments used for the method call |
obj
with parameters
args