Package com.google.inject.internal.util
Class StackTraceElements
- java.lang.Object
-
- com.google.inject.internal.util.StackTraceElements
-
public final class StackTraceElements extends Object
Creates stack trace elements for members.- Author:
- crazybob@google.com (Bob Lee)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StackTraceElements.InMemoryStackTraceElement
In-Memory version ofStackTraceElement
that does not store the file name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearCache()
Clears the internal cache forStackTraceElements
.static StackTraceElements.InMemoryStackTraceElement[]
convertToInMemoryStackTraceElement(StackTraceElement[] stackTraceElements)
Returns encoded in-memory version ofStackTraceElements
.static StackTraceElement[]
convertToStackTraceElement(StackTraceElements.InMemoryStackTraceElement[] inMemoryStackTraceElements)
Decodes in-memory stack trace elements to regularStackTraceElements
.static Object
forMember(Member member)
static Object
forType(Class<?> implementation)
-
-
-
Method Detail
-
clearCache
public static void clearCache()
Clears the internal cache forStackTraceElements
.
-
convertToInMemoryStackTraceElement
public static StackTraceElements.InMemoryStackTraceElement[] convertToInMemoryStackTraceElement(StackTraceElement[] stackTraceElements)
Returns encoded in-memory version ofStackTraceElements
.
-
convertToStackTraceElement
public static StackTraceElement[] convertToStackTraceElement(StackTraceElements.InMemoryStackTraceElement[] inMemoryStackTraceElements)
Decodes in-memory stack trace elements to regularStackTraceElements
.
-
-