Package com.google.inject.internal
Class SourceFormatter
java.lang.Object
com.google.inject.internal.SourceFormatter
Formatting a single source in Guice error message.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSourceFormatter(Object source, Formatter formatter, boolean omitPreposition) -
Method Summary
Modifier and TypeMethodDescription(package private) voidformat()private voidformatDependency(Dependency<?> dependency) private voidformatInjectionPoint(Dependency<?> dependency, InjectionPoint injectionPoint) private voidprivate voidformatMember(Member member) (package private) static StringgetModuleStack(ElementSource elementSource) private static StringgetOrdinalSuffix(int ordinal) Maps1to the string"1st"ditto for all non-negative numbers(package private) static StringgetParameterName(Dependency<?> dependency) private Stringpreposition(String prepostition)
-
Field Details
-
INDENT
-
source
-
formatter
-
omitPreposition
private final boolean omitPreposition -
moduleStack
-
-
Constructor Details
-
SourceFormatter
-
-
Method Details
-
format
void format() -
preposition
-
formatDependency
-
formatKey
-
formatMember
-
formatInjectionPoint
-
getModuleStack
-
getParameterName
-
getOrdinalSuffix
Maps1to the string"1st"ditto for all non-negative numbers- See Also:
-