Class SourceProvider
java.lang.Object
org.elasticsearch.common.inject.internal.SourceProvider
public class SourceProvider
extends java.lang.Object
Provides access to the calling line of code.
-
Field Summary
Fields Modifier and Type Field Description static SourceProviderDEFAULT_INSTANCEstatic java.lang.ObjectUNKNOWN_SOURCEIndicates that the source is unknown. -
Constructor Summary
Constructors Constructor Description SourceProvider() -
Method Summary
Modifier and Type Method Description java.lang.StackTraceElementget()Returns the calling line of code.SourceProviderplusSkippedClasses(java.lang.Class... moreClassesToSkip)Returns a new instance that also skipsmoreClassesToSkip.
-
Field Details
-
UNKNOWN_SOURCE
public static final java.lang.Object UNKNOWN_SOURCEIndicates that the source is unknown. -
DEFAULT_INSTANCE
-
-
Constructor Details
-
SourceProvider
public SourceProvider()
-
-
Method Details
-
plusSkippedClasses
Returns a new instance that also skipsmoreClassesToSkip. -
get
public java.lang.StackTraceElement get()Returns the calling line of code. The selected line is the nearest to the top of the stack that is not skipped.
-