Class SourceProvider
java.lang.Object
org.elasticsearch.common.inject.internal.SourceProvider
Provides access to the calling line of code.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SourceProvider
static final Object
Indicates that the source is unknown. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the calling line of code.plusSkippedClasses
(Class... moreClassesToSkip) Returns a new instance that also skipsmoreClassesToSkip
.
-
Field Details
-
UNKNOWN_SOURCE
Indicates that the source is unknown. -
DEFAULT_INSTANCE
-
-
Constructor Details
-
SourceProvider
public SourceProvider()
-
-
Method Details
-
plusSkippedClasses
Returns a new instance that also skipsmoreClassesToSkip
. -
get
Returns the calling line of code. The selected line is the nearest to the top of the stack that is not skipped.
-