Class SourceProvider

org.elasticsearch.common.inject.internal.SourceProvider

public class SourceProvider extends
Provides access to the calling line of code.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    static
    Indicates that the source is unknown.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns the calling line of code.
    ... moreClassesToSkip)
    Returns a new instance that also skips moreClassesToSkip.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Field Details

    • UNKNOWN_SOURCE

      public static final  UNKNOWN_SOURCE
      Indicates that the source is unknown.
    • DEFAULT_INSTANCE

      public static final SourceProvider DEFAULT_INSTANCE
  • Constructor Details

    • SourceProvider

      public SourceProvider()
  • Method Details

    • plusSkippedClasses

      public ... moreClassesToSkip)
      Returns a new instance that also skips moreClassesToSkip.
    • 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.