Class ConstructorMemberHandle
java.lang.Object
com.cryptomorin.xseries.reflection.jvm.MemberHandle
com.cryptomorin.xseries.reflection.jvm.ConstructorMemberHandle
- All Implemented Interfaces:
ReflectiveHandle<MethodHandle>
A handle for using reflection for
Constructor.-
Field Summary
FieldsFields inherited from class com.cryptomorin.xseries.reflection.jvm.MemberHandle
accessFlags, clazz -
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)parameters(ClassHandle... parameterTypes) parameters(Class<?>... parameterTypes) reflect()The heart of the class.Constructor<?> It's preferred to use one of theMethodHandlemethods instead.Changes the signature of this handle according to the given java code (seeReflectionParser) This overrides the current declaration, but names will be kept and any new names specified in the signature will also be added.toString()Methods inherited from class com.cryptomorin.xseries.reflection.jvm.MemberHandle
getAccessFlags, getClassHandle, handleAccessible, makeAccessibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cryptomorin.xseries.reflection.ReflectiveHandle
cached, catchError, exists, reflectOrNull, unreflect, unwrap
-
Field Details
-
parameterTypes
-
-
Constructor Details
-
ConstructorMemberHandle
-
-
Method Details
-
getParameterTypes
-
parameters
-
parameters
-
reflect
Description copied from interface:ReflectiveHandleThe heart of the class.- Specified by:
reflectin interfaceReflectiveHandle<MethodHandle>- Specified by:
reflectin classMemberHandle- 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:
-
signature
Description copied from class:MemberHandleChanges the signature of this handle according to the given java code (seeReflectionParser) This overrides the current declaration, but names will be kept and any new names specified in the signature will also be added.- Specified by:
signaturein classMemberHandle
-
jvm
Description copied from interface:ReflectiveHandleUsuallyReflectiveHandles returnMethodHandlewhen possible, however this method returns the raw object using the traditional Java reflection API which can be:- See Also:
-
reflectJvm
Description copied from class:MemberHandleIt's preferred to use one of theMethodHandlemethods instead. This method should only be used for special cases when a direct JVM object is needed.- Specified by:
reflectJvmin classMemberHandle- Throws:
ReflectiveOperationException- See Also:
-
copy
Description copied from interface:ReflectiveHandleCreates a new handle with the same properties.- Specified by:
copyin interfaceReflectiveHandle<MethodHandle>- Specified by:
copyin classMemberHandle
-
toString
-