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()
Returns the calling line of code.
|
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
.moreClassesToSkip
- a list of classes to skip in from source provider.moreClassesToSkip
.public StackTraceElement get()