public class BetterReflection extends Object
| Modifier and Type | Field and Description |
|---|---|
static BetterReflectionClass |
FIELD |
static Pattern |
INTEGER_PATTERN |
static BetterReflectionClass |
JAVA_CLASS |
| Constructor and Description |
|---|
BetterReflection() |
| Modifier and Type | Method and Description |
|---|---|
BetterReflectionClass |
getBetterReflectionClass(Class<?> 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 BetterReflectionClass FIELD
public static final Pattern INTEGER_PATTERN
public static final BetterReflectionClass JAVA_CLASS
public List<BetterReflectionClass> getBetterReflectionClasses()
public BetterReflectionClass getBetterReflectionClass(String name)
public BetterReflectionClass getBetterReflectionClass(Class<?> 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.