Class ConstructorMemberHandle
java.lang.Object
com.cryptomorin.xseries.reflection.jvm.MemberHandle
com.cryptomorin.xseries.reflection.jvm.ConstructorMemberHandle
- All Implemented Interfaces:
ReflectiveHandle<MethodHandle>,Cloneable
A handle for using reflection for
Constructor.-
Field Summary
FieldsFields inherited from class com.cryptomorin.xseries.reflection.jvm.MemberHandle
clazz, isFinal, makeAccessible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new handle with the same properties.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
getClassHandle, handleAccessible, makeAccessibleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cryptomorin.xseries.reflection.ReflectiveHandle
catchError, exists, reflectOrNull, unreflect
-
Field Details
-
parameterTypes
-
-
Constructor Details
-
ConstructorMemberHandle
-
-
Method Details
-
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
-
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:
-
clone
Description copied from interface:ReflectiveHandleCreates a new handle with the same properties.- Specified by:
clonein interfaceReflectiveHandle<MethodHandle>- Specified by:
clonein classMemberHandle
-
toString
-