Class MemberHandle
java.lang.Object
com.cryptomorin.xseries.reflection.jvm.MemberHandle
- All Implemented Interfaces:
ReflectiveHandle<MethodHandle>
- Direct Known Subclasses:
ConstructorMemberHandle,NamedMemberHandle
This class should not be used directly.
Any object that is a member of a Class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends AccessibleObject & Member>
ThandleAccessible(T accessibleObject) abstract MethodHandlereflect()The heart of the class.abstract <T extends AccessibleObject & Member>
Tabstract MemberHandleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cryptomorin.xseries.reflection.ReflectiveHandle
catchError, exists, reflectOrNull, unreflect
-
Field Details
-
makeAccessible
protected boolean makeAccessible -
isFinal
protected boolean isFinal -
clazz
-
-
Constructor Details
-
MemberHandle
-
-
Method Details
-
getClassHandle
-
makeAccessible
-
signature
-
reflect
Description copied from interface:ReflectiveHandleThe heart of the class.- Specified by:
reflectin interfaceReflectiveHandle<MethodHandle>- Returns:
- the final JVM object that exists in this runtime.
- Throws:
ReflectiveOperationException- if any errors occur while getting the object, including unknown objects, security issues, etc...- See Also:
-
reflectJvm
public abstract <T extends AccessibleObject & Member> T reflectJvm() throws ReflectiveOperationException- Throws:
ReflectiveOperationException
-
handleAccessible
protected <T extends AccessibleObject & Member> T handleAccessible(T accessibleObject) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-