java.lang.Object
ushiosan.jvm.internal.validators.UClassValidator
ushiosan.jvm.internal.validators.UReflectionValidator
ushiosan.jvm.internal.reflection.UReflectionImpl
ushiosan.jvm.reflection.UReflectionActions
-
Field Summary
Fields inherited from class ushiosan.jvm.internal.reflection.UReflectionImpl
MEMBER_FILTER_ARRAYFields inherited from class ushiosan.jvm.internal.validators.UClassValidator
INVALID_GET_TYPES, PRIMITIVE_ARRAY_CLASSES, PRIMITIVE_ARRAY_INDIVIDUAL, PRIMITIVE_WRAPPED_CLASSES -
Method Summary
Modifier and TypeMethodDescriptionPerforms a search for a class member depending on the options passed as a parameter.findField(@NotNull Class<?> cls, @NotNull String name, @NotNull Class<?> type, @NotNull UReflectionOptions<Field> options) Performs a search for a class member depending on the options passed as a parameter.findMethod(@NotNull Class<?> cls, @NotNull String name, @NotNull UReflectionOptions<Method> options, Class<?> @NotNull ... args) Performs a search for a class member depending on the options passed as a parameter.Performs a search for a class member depending on the options passed as a parameter.Methods inherited from class ushiosan.jvm.internal.reflection.UReflectionImpl
annotatedWith, annotatedWith, excludeMembers, fieldType, filterFields, filterMethods, methodReturnType, methodTypeParams, modifiers, modifiers, named, regexMemberOf, regexMemberOf, regexMemberOf, regexMemberOf, validObtainMemberMethods inherited from class ushiosan.jvm.internal.validators.UReflectionValidator
checkRecursiveCall
-
Method Details
-
findMethod
@NotNull public static @NotNull Method findMethod(@NotNull @NotNull Class<?> cls, @NotNull @NotNull String name, @NotNull @NotNull UReflectionOptions<Method> options, Class<?> @NotNull ... args) throws NoSuchMethodException Performs a search for a class member depending on the options passed as a parameter.- Parameters:
cls- the class you want to search forname- the name the member to search for (name only)options- search optionsargs- arguments that the method requires to function correctly.- Returns:
- the method with the search properties
- Throws:
NoSuchMethodException- error if the method does not exist or there is some incorrect configuration so that said member is not found
-
findMethod
@NotNull public static @NotNull Method findMethod(@NotNull @NotNull Class<?> cls, @NotNull @NotNull String name, Class<?> @NotNull ... args) throws NoSuchMethodException Performs a search for a class member depending on the options passed as a parameter.- Parameters:
cls- the class you want to search forname- the name the member to search for (name only)args- arguments that the method requires to function correctly.- Returns:
- the method with the search properties
- Throws:
NoSuchMethodException- error if the method does not exist or there is some incorrect configuration so that said member is not found
-
findField
@NotNull public static @NotNull Field findField(@NotNull @NotNull Class<?> cls, @NotNull @NotNull String name, @NotNull @NotNull Class<?> type, @NotNull @NotNull UReflectionOptions<Field> options) throws NoSuchFieldException Performs a search for a class member depending on the options passed as a parameter.- Parameters:
cls- the class you want to search forname- the name the member to search for (name only)type- the data type of the member to search foroptions- search options- Returns:
- the field with the search properties
- Throws:
NoSuchFieldException- error if the field does not exist or there is some incorrect configuration so that said member is not found
-
findField
@NotNull public static @NotNull Field findField(@NotNull @NotNull Class<?> cls, @NotNull @NotNull String name, @NotNull @NotNull Class<?> type) throws NoSuchFieldException Performs a search for a class member depending on the options passed as a parameter.- Parameters:
cls- the class you want to search forname- the name the member to search for (name only)type- the data type of the member to search for- Returns:
- the field with the search properties
- Throws:
NoSuchFieldException- error if the field does not exist or there is some incorrect configuration so that said member is not found
-