declaresException(Method method,
Class exceptionType)
Determine whether the given method explicitly declares the given exception
or one of its superclasses, which means that an exception of that type
can be propagated as-is within a reflective invocation.

setField

Set the field represented by the supplied field object on
the specified target object to the specified
value. In accordance with
Field.set(Object, Object) semantics, the new value is
automatically unwrapped if the underlying field has a primitive type.

getField

Get the field represented by the supplied field object on
the specified target object. In accordance with
Field.get(Object) semantics, the returned value is
automatically wrapped if the underlying field has a primitive type.

declaresException

Determine whether the given method explicitly declares the given exception
or one of its superclasses, which means that an exception of that type
can be propagated as-is within a reflective invocation.

Parameters:

method - the declaring method

exceptionType - the exception to throw

Returns:

true if the exception can be thrown as-is;
false if it needs to be wrapped

isToStringMethod

makeAccessible

Make the given field accessible, explicitly setting it accessible if necessary.
The setAccessible(true) method is only called when actually necessary,
to avoid unnecessary conflicts with a JVM SecurityManager (if active).

makeAccessible

Make the given method accessible, explicitly setting it accessible if necessary.
The setAccessible(true) method is only called when actually necessary,
to avoid unnecessary conflicts with a JVM SecurityManager (if active).

makeAccessible

Make the given constructor accessible, explicitly setting it accessible if necessary.
The setAccessible(true) method is only called when actually necessary,
to avoid unnecessary conflicts with a JVM SecurityManager (if active).