public enum StackTraceParser extends Enum<StackTraceParser>
| Modifier and Type | Method and Description |
|---|---|
static int |
findNthFilename(StackTraceElement[] stackTrace,
int level) |
static String |
formatReference(StackTraceElement element) |
static String |
getCalledMethod(Exception exception,
int level) |
static StackTraceParser |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StackTraceParser[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static StackTraceParser[] values()
for (StackTraceParser c : StackTraceParser.values()) System.out.println(c);
public static StackTraceParser 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 String getCalledMethod(Exception exception, int level)
level - The caller className level, must be bigger than zeropublic static String formatReference(StackTraceElement element)
public static int findNthFilename(StackTraceElement[] stackTrace, int level)
Copyright © 2015. All rights reserved.