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