public final class JVMHelper extends Object
| Constructor and Description |
|---|
JVMHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPath(String path)
This method is used to add a path to the System Class Loader.
|
static void |
compileClass(String classPath)
This method is used to compile a class within the file passed as argument.
|
static <T> T[] |
setAll(T[] array,
IntFunction<? extends T> generator) |
static <T> T[] |
setAll(T[] array,
Supplier<? extends T> generator) |
static Boolean[] |
toObject(boolean[] array) |
static Byte[] |
toObject(byte[] array) |
static Character[] |
toObject(char[] array) |
static Double[] |
toObject(double[] array) |
static Float[] |
toObject(float[] array) |
static Integer[] |
toObject(int[] array) |
static Long[] |
toObject(long[] array) |
static Short[] |
toObject(short[] array) |
static boolean[] |
toPrimitive(Boolean[] array) |
static boolean[] |
toPrimitive(Boolean[] array,
boolean valueForNull) |
static byte[] |
toPrimitive(Byte[] array) |
static char[] |
toPrimitive(Character[] array) |
static double[] |
toPrimitive(Double[] array) |
static float[] |
toPrimitive(Float[] array) |
static int[] |
toPrimitive(Integer[] array) |
static long[] |
toPrimitive(Long[] array) |
static short[] |
toPrimitive(Short[] array) |
public static void addPath(String path) throws Exception
path - The path to add to the System Class LoaderException - in case of errorpublic static void compileClass(String classPath) throws Exception
classPath - The path of the file to be compiled.Exception - in case of errorpublic static <T> T[] setAll(T[] array,
IntFunction<? extends T> generator)
public static <T> T[] setAll(T[] array,
Supplier<? extends T> generator)
public static Boolean[] toObject(boolean[] array)
public static Byte[] toObject(byte[] array)
public static Character[] toObject(char[] array)
public static Double[] toObject(double[] array)
public static Float[] toObject(float[] array)
public static Integer[] toObject(int[] array)
public static Long[] toObject(long[] array)
public static Short[] toObject(short[] array)
public static boolean[] toPrimitive(Boolean[] array)
public static boolean[] toPrimitive(Boolean[] array, boolean valueForNull)
public static byte[] toPrimitive(Byte[] array)
public static char[] toPrimitive(Character[] array)
public static double[] toPrimitive(Double[] array)
public static float[] toPrimitive(Float[] array)
public static int[] toPrimitive(Integer[] array)
public static long[] toPrimitive(Long[] array)
public static short[] toPrimitive(Short[] array)