| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final Method | |
| private final Method | |
| private final Method | |
| private final Method | |
| private final Method | |
| private final Method | |
| private final Method | |
| private final Class | |
| private final Method | |
| private final Method |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Class | findClass(final String
the class name className)Implements abstract nonapi. Find a class by name. |
| pack-priv <T> Constructor | getDeclaredConstructors(final Class<T>
the class cls)Implements abstract nonapi. Get declared constructors for class. |
| pack-priv Field[] | getDeclaredFields(final Class<?>
the class cls)Implements abstract nonapi. Get declared fields for class. |
| pack-priv Method[] | getDeclaredMethods(final Class<?>
the class cls)Implements abstract nonapi. Get declared methods for class. |
| pack-priv Object | getField(final Object
the object instance to get the field value from object, final Field the non-static field field)Implements abstract nonapi. Get the value of a non-static field, boxing the value if necessary. |
| pack-priv Object | getStaticField(final Field
the static field field)Implements abstract nonapi. Get the value of a static field, boxing the value if necessary. |
| pack-priv Object | invokeMethod(final Object
the object instance to invoke the method on object, final Method the non-static method method, final Object... the method arguments (or args)new Object[0] if there are no args)Implements abstract nonapi. Invoke a non-static method, boxing the result if necessary. |
| pack-priv Object | invokeStaticMethod(final Method
the static method method, final Object... the method arguments (or args)new Object[0] if there are no args)Implements abstract nonapi. Invoke a static method, boxing the result if necessary. |
| public boolean | isAccessible(final Object
the object instance, or null if static. instance, final AccessibleObject the field or method. obj)Overrides nonapi. Check whether a field or method is accessible. |
| public boolean | makeAccessible(final Object
the object instance, or null if static. instance, final AccessibleObject the field or method. accessibleObject)Implements abstract nonapi. Make a field or method accessible. |
| pack-priv void | setField(final Object
the object instance to get the field value from object, final Field the non-static field field, final Object the value to set value)Implements abstract nonapi. Set the value of a non-static field, unboxing the value if necessary. |
| pack-priv void | setStaticField(final Field
the static field field, final Object the value to set value)Implements abstract nonapi. Set the value of a static field, unboxing the value if necessary. |
| findClass | back to summary |
|---|---|
| private final Method findClass | |
| getDeclaredConstructors | back to summary |
|---|---|
| private final Method getDeclaredConstructors | |
| getDeclaredFields | back to summary |
|---|---|
| private final Method getDeclaredFields | |
| getDeclaredMethods | back to summary |
|---|---|
| private final Method getDeclaredMethods | |
| getField | back to summary |
|---|---|
| private final Method getField | |
| getStaticField | back to summary |
|---|---|
| private final Method getStaticField | |
| invokeMethod | back to summary |
|---|---|
| private final Method invokeMethod | |
| invokeStaticMethod | back to summary |
|---|---|
| private final Method invokeStaticMethod | |
| narcissusClass | back to summary |
|---|---|
| private final Class<?> narcissusClass | |
| setField | back to summary |
|---|---|
| private final Method setField | |
| setStaticField | back to summary |
|---|---|
| private final Method setStaticField | |
| NarcissusReflectionDriver | back to summary |
|---|---|
| pack-priv NarcissusReflectionDriver() throws Exception | |
| findClass | back to summary |
|---|---|
| pack-priv Class Implements abstract nonapi. Doc from nonapi. Find a class by name. | |
| getDeclaredConstructors | back to summary |
|---|---|
| pack-priv <T> Constructor Implements abstract nonapi. Doc from nonapi. Get declared constructors for class.
| |
| getDeclaredFields | back to summary |
|---|---|
| pack-priv Field[] getDeclaredFields(final Class<?> cls) throws Exception Implements abstract nonapi. Doc from nonapi. Get declared fields for class. | |
| getDeclaredMethods | back to summary |
|---|---|
| pack-priv Method[] getDeclaredMethods(final Class<?> cls) throws Exception Implements abstract nonapi. Doc from nonapi. Get declared methods for class. | |
| getField | back to summary |
|---|---|
| pack-priv Object getField(final Object object, final Field field) throws Exception Implements abstract nonapi. Doc from nonapi. Get the value of a non-static field, boxing the value if necessary. | |
| getStaticField | back to summary |
|---|---|
| pack-priv Object getStaticField(final Field field) throws Exception Implements abstract nonapi. Doc from nonapi. Get the value of a static field, boxing the value if necessary. | |
| invokeMethod | back to summary |
|---|---|
| pack-priv Object invokeMethod(final Object object, final Method method, final Object... args) throws Exception Implements abstract nonapi. Doc from nonapi. Invoke a non-static method, boxing the result if necessary. | |
| invokeStaticMethod | back to summary |
|---|---|
| pack-priv Object invokeStaticMethod(final Method method, final Object... args) throws Exception Implements abstract nonapi. Doc from nonapi. Invoke a static method, boxing the result if necessary. | |
| isAccessible | back to summary |
|---|---|
| public boolean isAccessible(final Object instance, final AccessibleObject obj) Overrides nonapi. Doc from nonapi. Check whether a field or method is accessible. N.B. this is overridden in Narcissus driver to just return true, since everything is accessible to JNI.
| |
| makeAccessible | back to summary |
|---|---|
| public boolean makeAccessible(final Object instance, final AccessibleObject accessibleObject) Implements abstract nonapi. Doc from nonapi. Make a field or method accessible.
| |
| setField | back to summary |
|---|---|
| pack-priv void setField(final Object object, final Field field, final Object value) throws Exception Implements abstract nonapi. Doc from nonapi. Set the value of a non-static field, unboxing the value if necessary. | |
| setStaticField | back to summary |
|---|---|
| pack-priv void setStaticField(final Field field, final Object value) throws Exception Implements abstract nonapi. Doc from nonapi. Set the value of a static field, unboxing the value if necessary. | |