| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static @NotNull String | Returns: The simple name of the given class.The class to get the simple name of. clazz)Returns the simple name of the given class. |
| public static boolean | Returns: true if the given parameter types are assignable to the parameter types of the given method.The method to check. method, Class<?>... The parameter types to check. paramTypes)Returns |
| public static < The type of the class. T> T | Returns: The instantiated class. If the class could not be instantiated, aRuntimeException is thrown.The class to instantiate. clazz)Instantiates the given class with a no-argument constructor. |
| public static < The type of the class. T> T | Returns: The instantiated class. If the class could not be instantiated, aRuntimeException is thrown.The class to instantiate. clazz, @NotNull List<@NotNull Object> The arguments to pass to the constructor. args)Instantiates the given class with the given arguments. |
| public static < The type of the class. T> T | Returns: The instantiated class. If the class could not be instantiated, aRuntimeException is thrown.The class to instantiate. clazz, @NotNull List<? extends Class<?>> The types of the arguments to pass to the constructor. argTypes, @NotNull List<Object> The arguments to pass to the constructor. args)Instantiates the given class with the given arguments. |
| UtlReflection | back to summary |
|---|---|
| private UtlReflection() | |
| getSimpleName | back to summary |
|---|---|
| public static @NotNull String getSimpleName(@NotNull Class<?> clazz) Returns the simple name of the given class. If the class is an anonymous class, then the simple name of the superclass is returned. | |
| hasParameters | back to summary |
|---|---|
| public static boolean hasParameters(Method method, Class<?>... paramTypes) Returns | |
| instantiate | back to summary |
|---|---|
| public static <T> T instantiate(Class<T> clazz) Instantiates the given class with a no-argument constructor.
| |
| instantiate | back to summary |
|---|---|
| public static <T> T instantiate(Class<T> clazz, @NotNull List<@NotNull Object> args) Instantiates the given class with the given arguments. | |
| instantiate | back to summary |
|---|---|
| public static <T> T instantiate(Class<T> clazz, @NotNull List<? extends Class<?>> argTypes, @NotNull List<Object> args) Instantiates the given class with the given arguments.
| |