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()
UsuallyReflectiveHandle
s returnMethodHandle
when possible, however this method returns the raw object using the traditional Java reflection API which can be:Field
Method
Constructor
Class (same as its normal ReflectiveHandle)
@NotNull ReflectedObject
reflect()
The heart of the class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.cryptomorin.xseries.reflection.ReflectiveHandle
cached, catchError, exists, reflectOrNull, unreflect, unwrap
-
Constructor Details
-
ReflectedObjectHandle
-
-
Method Details
-
copy
Description copied from interface:ReflectiveHandle
Creates a new handle with the same properties.- Specified by:
copy
in interfaceReflectiveHandle<ReflectedObject>
-
reflect
Description copied from interface:ReflectiveHandle
The heart of the class.- Specified by:
reflect
in 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:ReflectiveHandle
UsuallyReflectiveHandle
s returnMethodHandle
when possible, however this method returns the raw object using the traditional Java reflection API which can be:- Specified by:
jvm
in interfaceReflectiveHandle<ReflectedObject>
- See Also:
-