public final class SourceProvider extends Object
Modifier and Type | Field and Description |
---|---|
static SourceProvider |
DEFAULT_INSTANCE |
static Object |
UNKNOWN_SOURCE
Indicates that the source is unknown.
|
Modifier and Type | Method and Description |
---|---|
StackTraceElement |
get(StackTraceElement[] stackTraceElements)
Returns the calling line of code.
|
Object |
getFromClassNames(List<String> moduleClassNames)
Returns the non-skipped module class name.
|
SourceProvider |
plusSkippedClasses(Class... moreClassesToSkip)
Returns a new instance that also skips
moreClassesToSkip . |
public static final Object UNKNOWN_SOURCE
public static final SourceProvider DEFAULT_INSTANCE
public SourceProvider plusSkippedClasses(Class... moreClassesToSkip)
moreClassesToSkip
.public StackTraceElement get(StackTraceElement[] stackTraceElements)
Copyright © 2006-2015 Google, Inc.. All Rights Reserved.