public enum Jvm extends Enum<Jvm>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
IS_DEBUG |
| Modifier and Type | Method and Description |
|---|---|
static Field |
getField(Class clazz,
String name) |
static boolean |
isDebug() |
static void |
pause(long millis) |
static <T extends Throwable> |
rethrow(Throwable t) |
static int |
trimLast(int first,
StackTraceElement[] stes) |
static void |
trimStackTrace(StringBuilder sb,
StackTraceElement... stes) |
static Jvm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Jvm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Jvm[] values()
for (Jvm c : Jvm.values()) System.out.println(c);
public static Jvm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static <T extends Throwable> RuntimeException rethrow(Throwable t) throws T extends Throwable
T extends Throwablepublic static void trimStackTrace(StringBuilder sb, StackTraceElement... stes)
public static int trimLast(int first,
StackTraceElement[] stes)
public static boolean isDebug()
public static void pause(long millis)
Copyright © 2015. All rights reserved.