Package com.google.inject.internal.util
Class SourceProvider
java.lang.Object
com.google.inject.internal.util.SourceProvider
Provides access to the calling line of code.
- Author:
- crazybob@google.com (Bob Lee)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SourceProvider
static final Object
Indicates that the source is unknown. -
Method Summary
Modifier and TypeMethodDescriptionReturns the calling line of code.getFromClassNames
(List<String> moduleClassNames) Returns the non-skipped module class name.plusSkippedClasses
(Class<?>... moreClassesToSkip) Returns a new instance that also skipsmoreClassesToSkip
.
-
Field Details
-
UNKNOWN_SOURCE
Indicates that the source is unknown. -
DEFAULT_INSTANCE
-
-
Method Details
-
plusSkippedClasses
Returns a new instance that also skipsmoreClassesToSkip
. -
getCaller
Returns the calling line of code. The selected line is the nearest to the top of the stack that is not skipped. -
getFromClassNames
Returns the non-skipped module class name.
-