Class NamedMemberHandle
java.lang.Object
com.cryptomorin.xseries.reflection.jvm.MemberHandle
com.cryptomorin.xseries.reflection.jvm.NamedMemberHandle
- All Implemented Interfaces:
NameableReflectiveHandle, NamedReflectiveHandle, ReflectiveHandle<MethodHandle>
- Direct Known Subclasses:
EnumMemberHandle, FlaggedNamedMemberHandle
This class should not be used directly.
Any reflective JVM object that has a name, like Field or Method
the other being Constructor which doesn't have a name.
-
Field Summary
FieldsFields inherited from class MemberHandle
accessFlags, clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract NamedMemberHandlecopy()Creates a new handle with the same properties.map(MinecraftMapping mapping, String name) Methods inherited from class MemberHandle
getAccessFlags, getClassHandle, handleAccessible, makeAccessible, reflect, reflectJvm, signatureMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReflectiveHandle
cached, catchError, exists, jvm, reflectOrNull, unreflect, unwrap
-
Field Details
-
names
-
-
Constructor Details
-
NamedMemberHandle
-
-
Method Details
-
getPossibleNames
- Specified by:
getPossibleNamesin interfaceNamedReflectiveHandle
-
map
public NamedMemberHandle map(MinecraftMapping mapping, @Pattern("\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*") String name) - Specified by:
mapin interfaceNameableReflectiveHandle
-
named
public NamedMemberHandle named(@Pattern("\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*") String... names) - Specified by:
namedin interfaceNameableReflectiveHandle
-
copy
Description copied from interface:ReflectiveHandleCreates a new handle with the same properties.- Specified by:
copyin interfaceReflectiveHandle<MethodHandle>- Specified by:
copyin classMemberHandle
-