public final class SourceProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SourceProvider |
DEFAULT_INSTANCE |
static java.lang.Object |
UNKNOWN_SOURCE
Indicates that the source is unknown.
|
Modifier and Type | Method and Description |
---|---|
java.lang.StackTraceElement |
get()
Returns the calling line of code.
|
SourceProvider |
plusSkippedClasses(java.lang.Class... moreClassesToSkip)
Returns a new instance that also skips
moreClassesToSkip . |
public static final java.lang.Object UNKNOWN_SOURCE
public static final SourceProvider DEFAULT_INSTANCE
public SourceProvider plusSkippedClasses(java.lang.Class... moreClassesToSkip)
moreClassesToSkip
.moreClassesToSkip
- a list of classes to skip in from source provider.moreClassesToSkip
.public java.lang.StackTraceElement get()