| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | ReflectionHelper.
Internal abstraction over reflection when Records are supported. |
| private static class | ReflectionHelper.
Instance used when records are not supported |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ReflectionHelper. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static String | |
| private static RuntimeException | |
| public static RuntimeException | |
| public static String | fieldToString(Field field)
Creates a string representation for a field, omitting modifiers and the field type. |
| public static String | getAccessibleObjectDescription(AccessibleObject
object to describe object, boolean whether the first letter of the description should be uppercased uppercaseFirstLetter)Returns a short string describing the |
| public static Method | getAccessor(Class<?> raw, Field field)
Looks up the record accessor method that corresponds to the given record field |
| public static <T> Constructor | |
| private static String | |
| public static String[] | |
| public static boolean | isAnonymousOrNonStaticLocal(Class<?> clazz)
Returns whether the class is anonymous or a non-static local class. |
| public static boolean | |
| public static boolean | |
| public static void | makeAccessible(AccessibleObject
the object that object)AccessibleObject#setAccessible(boolean) should be called
on.Internal implementation of making an |
| public static String | Returns: exception message;null if successful, non-null if unsuccessfulconstructor to make accessible constructor)Tries making the constructor accessible, returning an exception message if this fails. |
| RECORD_HELPER | back to summary |
|---|---|
| private static final ReflectionHelper. | |
| ReflectionHelper | back to summary |
|---|---|
| private ReflectionHelper() | |
| appendExecutableParameters | back to summary |
|---|---|
| private static void appendExecutableParameters(AccessibleObject executable, StringBuilder stringBuilder) | |
| constructorToString | back to summary |
|---|---|
| public static String constructorToString(Constructor<?> constructor) Creates a string representation for a constructor. E.g.: | |
| createExceptionForRecordReflectionException | back to summary |
|---|---|
| private static RuntimeException createExceptionForRecordReflectionException(ReflectiveOperationException exception) | |
| createExceptionForUnexpectedIllegalAccess | back to summary |
|---|---|
| public static RuntimeException createExceptionForUnexpectedIllegalAccess(IllegalAccessException exception) | |
| fieldToString | back to summary |
|---|---|
| public static String fieldToString(Field field) Creates a string representation for a field, omitting modifiers and the field type. | |
| getAccessibleObjectDescription | back to summary |
|---|---|
| public static String getAccessibleObjectDescription(AccessibleObject object, boolean uppercaseFirstLetter) Returns a short string describing the
| |
| getAccessor | back to summary |
|---|---|
| public static Method getAccessor(Class<?> raw, Field field) Looks up the record accessor method that corresponds to the given record field | |
| getCanonicalRecordConstructor | back to summary |
|---|---|
| public static <T> Constructor | |
| getInaccessibleTroubleshootingSuffix | back to summary |
|---|---|
| private static String getInaccessibleTroubleshootingSuffix(Exception e) | |
| getRecordComponentNames | back to summary |
|---|---|
| public static String[] getRecordComponentNames(Class<?> raw) | |
| isAnonymousOrNonStaticLocal | back to summary |
|---|---|
| public static boolean isAnonymousOrNonStaticLocal(Class<?> clazz) Returns whether the class is anonymous or a non-static local class. | |
| isRecord | back to summary |
|---|---|
| public static boolean isRecord(Class<?> raw) If records are supported on the JVM, this is equivalent to a call to Class.isRecord() | |
| isStatic | back to summary |
|---|---|
| public static boolean isStatic(Class<?> clazz) | |
| makeAccessible | back to summary |
|---|---|
| public static void makeAccessible(AccessibleObject object) throws JsonIOException Internal implementation of making an
| |
| tryMakeAccessible | back to summary |
|---|---|
| public static String tryMakeAccessible(Constructor<?> constructor) Tries making the constructor accessible, returning an exception message if this fails.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract Method | |
| pack-priv abstract <T> Constructor | |
| pack-priv abstract String[] | |
| pack-priv abstract boolean |
| RecordHelper | back to summary |
|---|---|
| private RecordHelper() | |
| getAccessor | back to summary |
|---|---|
| pack-priv abstract Method getAccessor(Class<?> raw, Field field) | |
| getCanonicalRecordConstructor | back to summary |
|---|---|
| pack-priv abstract <T> Constructor | |
| getRecordComponentNames | back to summary |
|---|---|
| pack-priv abstract String[] getRecordComponentNames(Class<?> clazz) | |
| isRecord | back to summary |
|---|---|
| pack-priv abstract boolean isRecord(Class<?> clazz) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Method | getAccessor(Class<?> raw, Field field)
Implements abstract com.
|
| pack-priv <T> Constructor | |
| pack-priv String[] | getRecordComponentNames(Class<?> clazz)
Implements abstract com.
|
| pack-priv boolean | isRecord(Class<?> clazz)
Implements abstract com.
|
| RecordNotSupportedHelper | back to summary |
|---|---|
| private RecordNotSupportedHelper() | |
| getAccessor | back to summary |
|---|---|
| public Method getAccessor(Class<?> raw, Field field) Implements abstract com.
| |
| getCanonicalRecordConstructor | back to summary |
|---|---|
| pack-priv <T> Constructor Implements abstract com.
| |
| getRecordComponentNames | back to summary |
|---|---|
| pack-priv String[] getRecordComponentNames(Class<?> clazz) Implements abstract com.
| |
| isRecord | back to summary |
|---|---|
| pack-priv boolean isRecord(Class<?> clazz) Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final Method | |
| private final Method | |
| private final Method |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Method | getAccessor(Class<?> raw, Field field)
Implements abstract com.
|
| public <T> Constructor | |
| pack-priv String[] | getRecordComponentNames(Class<?> raw)
Implements abstract com.
|
| pack-priv boolean | isRecord(Class<?> raw)
Implements abstract com.
|
| getName | back to summary |
|---|---|
| private final Method getName | |
| getRecordComponents | back to summary |
|---|---|
| private final Method getRecordComponents | |
| getType | back to summary |
|---|---|
| private final Method getType | |
| isRecord | back to summary |
|---|---|
| private final Method isRecord | |
| RecordSupportedHelper | back to summary |
|---|---|
| private RecordSupportedHelper() throws NoSuchMethodException, ClassNotFoundException | |
| getAccessor | back to summary |
|---|---|
| public Method getAccessor(Class<?> raw, Field field) Implements abstract com.
| |
| getCanonicalRecordConstructor | back to summary |
|---|---|
| public <T> Constructor Implements abstract com.
| |
| getRecordComponentNames | back to summary |
|---|---|
| pack-priv String[] getRecordComponentNames(Class<?> raw) Implements abstract com.
| |
| isRecord | back to summary |
|---|---|
| pack-priv boolean isRecord(Class<?> raw) Implements abstract com.
| |