public class BetterReflection extends Object
| Modifier and Type | Field and Description |
|---|---|
static BetterReflectionClass<Field> |
FIELD |
static BetterReflection |
INSTANCE |
static Pattern |
INTEGER_PATTERN |
static BetterReflectionClass<?> |
JAVA_CLASS |
static BetterReflectionClass<sun.misc.Unsafe> |
UNSAFE_CLASS |
| Constructor and Description |
|---|
BetterReflection() |
| Modifier and Type | Method and Description |
|---|---|
<T> BetterReflectionClass<T> |
getBetterReflectionClass(Class<T> clasz) |
BetterReflectionClass<?> |
getBetterReflectionClass(String name) |
List<BetterReflectionClass<?>> |
getBetterReflectionClasses() |
static Object |
getFieldValue(BetterReflectionClass<?> betterReflectionClass,
Object instance,
String fieldName) |
static FutureTask<String> |
getLatestVersion() |
static Map<Class<?>,BetterReflectionClass<?>> |
getPrimitives() |
static String |
getVersion()
Returns the current version
|
static FutureTask<Boolean> |
isUpToDate()
Checks whether the current version matches (or is higher) than the latest
released version on GitHub.
|
static int[] |
versionToInts(String version) |
public static final BetterReflection INSTANCE
public static final BetterReflectionClass<Field> FIELD
public static final Pattern INTEGER_PATTERN
public static final BetterReflectionClass<?> JAVA_CLASS
public static final BetterReflectionClass<sun.misc.Unsafe> UNSAFE_CLASS
public List<BetterReflectionClass<?>> getBetterReflectionClasses()
public BetterReflectionClass<?> getBetterReflectionClass(String name)
public <T> BetterReflectionClass<T> getBetterReflectionClass(Class<T> clasz)
public static Map<Class<?>,BetterReflectionClass<?>> getPrimitives()
public static Object getFieldValue(BetterReflectionClass<?> betterReflectionClass, Object instance, String fieldName) throws IllegalAccessException
IllegalAccessExceptionpublic static FutureTask<String> getLatestVersion()
public static FutureTask<Boolean> isUpToDate()
public static String getVersion()
public static int[] versionToInts(String version)
version - the version as stringCopyright © 2024. All rights reserved.