Class ReflectedObjectHandle
java.lang.Object
com.cryptomorin.xseries.reflection.jvm.objects.ReflectedObjectHandle
- All Implemented Interfaces:
ReflectiveHandle<ReflectedObject>
public final class ReflectedObjectHandle
extends Object
implements ReflectiveHandle<ReflectedObject>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a new handle with the same properties.@NotNull ReflectiveHandle<ReflectedObject> jvm()UsuallyReflectiveHandles returnMethodHandlewhen possible, however this method returns the raw object using the traditional Java reflection API which can be:FieldMethodConstructorClass (same as its normal ReflectiveHandle)@NotNull ReflectedObjectreflect()The heart of the class.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReflectiveHandle
cached, catchError, exists, reflectOrNull, unreflect, unwrap
-
Constructor Details
-
ReflectedObjectHandle
-
-
Method Details
-
copy
Description copied from interface:ReflectiveHandleCreates a new handle with the same properties.- Specified by:
copyin interfaceReflectiveHandle<ReflectedObject>
-
reflect
Description copied from interface:ReflectiveHandleThe heart of the class.- Specified by:
reflectin interfaceReflectiveHandle<ReflectedObject>- 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:
-
jvm
Description copied from interface:ReflectiveHandleUsuallyReflectiveHandles returnMethodHandlewhen possible, however this method returns the raw object using the traditional Java reflection API which can be:- Specified by:
jvmin interfaceReflectiveHandle<ReflectedObject>- See Also:
-