This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| private boolean | |
| pack-priv List |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract String | Returns: unique id representing this captured typethe captured type for which an id is to be retrieved t,locale settings locale)Maps a captured type into an unique identifier. |
| protected String | Returns: localized string representationthe type of the class whose name is to be rendered t,if set, the class' fullname is displayed - if unset the
short name is chosen (w/o package) longform, Locale the locale in which the string is to be rendered locale)Converts a class name into a (possibly localized) string. |
| public static Printer | Returns: printer visitor instanceMessages class to be used for i18n messages)Create a printer with default i18n support provided by Messages. |
| protected abstract String | |
| public String | |
| private String | |
| private String | |
| private void | |
| private void | |
| protected String | Returns: localized string representationarguments to be rendered args, boolean if true, the last method argument is regarded as a vararg varArgs, Locale the locale in which the string is to be rendered locale)Converts a set of method argument types into their corresponding localized string representation. |
| public String | |
| public String | |
| public String | visitArrayType(Type.
Implements com.
|
| public String | visitCapturedType(Type.
Implements com.
|
| public String | visitClassSymbol(Symbol.
Implements com.
|
| public String | visitClassType(Type.
Implements com.
|
| public String | visitErrorType(Type.
Implements com.
|
| public String | visitForAll(Type.
Implements com.
|
| public String | visitMethodSymbol(Symbol.
Implements com.
|
| public String | visitMethodType(Type.
Implements com.
|
| public String | visitModuleType(Type.
Implements com.
|
| public String | visitOperatorSymbol(Symbol.
Implements com.
|
| public String | visitPackageSymbol(Symbol.
Implements com.
|
| public String | visitPackageType(Type.
Implements com.
|
| public String | |
| public String | Returns: localized string representationsymbols to be displayed ts, Locale the locale in which the string is to be rendered locale)* Get a localized string representation for all the symbols in the input list. |
| public String | |
| public String | Returns: localized string representationtypes to be displayed ts, Locale the locale in which the string is to be rendered locale)Get a localized string representation for all the types in the input list. |
| public String | visitTypeSymbol(Symbol.
Implements com.
|
| public String | visitTypeVar(Type.
Implements com.
|
| public String | visitUndetVar(Type.
Implements com.
|
| public String | visitVarSymbol(Symbol.
Implements com.
|
| public String | visitWildcardType(Type.
Implements com.
|
| PRIME | back to summary |
|---|---|
| pack-priv static final int PRIME | |
| printingMethodArgs | back to summary |
|---|---|
| private boolean printingMethodArgs | |
| seenCaptured | back to summary |
|---|---|
| pack-priv List<Type> seenCaptured | |
| Printer | back to summary |
|---|---|
| protected Printer() | |
| capturedVarId | back to summary |
|---|---|
| protected abstract String capturedVarId(Type. Maps a captured type into an unique identifier.
| |
| className | back to summary |
|---|---|
| protected String className(Type. Converts a class name into a (possibly localized) string. Anonymous inner classes get converted into a localized string. | |
| createStandardPrinter | back to summary |
|---|---|
| public static Printer createStandardPrinter(final Messages messages) Create a printer with default i18n support provided by Messages. By default, captured types ids are generated using hashcode. | |
| localize | back to summary |
|---|---|
| protected abstract String localize(Locale locale, String key, Object... args) This method should be overridden in order to provide proper i18n support. | |
| printAnnotation | back to summary |
|---|---|
| public String printAnnotation(Attribute. | |
| printAnnotations | back to summary |
|---|---|
| private String printAnnotations(Type t, Locale locale) | |
| printAnnotations | back to summary |
|---|---|
| private String printAnnotations(Type t, boolean prefix, Locale locale) | |
| printBaseElementType | back to summary |
|---|---|
| private void printBaseElementType(Type t, StringBuilder sb, Locale locale) | |
| printBrackets | back to summary |
|---|---|
| private void printBrackets(Type t, StringBuilder sb, Locale locale) | |
| printMethodArgs | back to summary |
|---|---|
| protected String printMethodArgs(List<Type> args, boolean varArgs, Locale locale) Converts a set of method argument types into their corresponding localized string representation. | |
| visit | back to summary |
|---|---|
| public String visit(Type t, Locale locale) Get a localized string representation for a given type. | |
| visit | back to summary |
|---|---|
| public String visit(Symbol s, Locale locale) Get a localized string representation for a given symbol. | |
| visitArrayType | back to summary |
|---|---|
| public String visitArrayType(Type. Implements com.
| |
| visitCapturedType | back to summary |
|---|---|
| public String visitCapturedType(Type. Implements com.
| |
| visitClassSymbol | back to summary |
|---|---|
| public String visitClassSymbol(Symbol. Implements com.
| |
| visitClassType | back to summary |
|---|---|
| public String visitClassType(Type. Implements com.
| |
| visitErrorType | back to summary |
|---|---|
| public String visitErrorType(Type. Implements com.
| |
| visitForAll | back to summary |
|---|---|
| public String visitForAll(Type. Implements com.
| |
| visitMethodSymbol | back to summary |
|---|---|
| public String visitMethodSymbol(Symbol. Implements com.
| |
| visitMethodType | back to summary |
|---|---|
| public String visitMethodType(Type. Implements com.
| |
| visitModuleType | back to summary |
|---|---|
| public String visitModuleType(Type. Implements com.
| |
| visitOperatorSymbol | back to summary |
|---|---|
| public String visitOperatorSymbol(Symbol. Implements com.
| |
| visitPackageSymbol | back to summary |
|---|---|
| public String visitPackageSymbol(Symbol. Implements com.
| |
| visitPackageType | back to summary |
|---|---|
| public String visitPackageType(Type. Implements com.
| |
| visitSymbol | back to summary |
|---|---|
| public String visitSymbol(Symbol s, Locale locale) Implements com.
| |
| visitSymbols | back to summary |
|---|---|
| public String visitSymbols(List<Symbol> ts, Locale locale) * Get a localized string representation for all the symbols in the input list. | |
| visitType | back to summary |
|---|---|
| public String visitType(Type t, Locale locale) Implements com. | |
| visitTypes | back to summary |
|---|---|
| public String visitTypes(List<Type> ts, Locale locale) Get a localized string representation for all the types in the input list. | |
| visitTypeSymbol | back to summary |
|---|---|
| public String visitTypeSymbol(Symbol. Implements com.
| |
| visitTypeVar | back to summary |
|---|---|
| public String visitTypeVar(Type. Implements com.
| |
| visitUndetVar | back to summary |
|---|---|
| public String visitUndetVar(Type. Implements com.
| |
| visitVarSymbol | back to summary |
|---|---|
| public String visitVarSymbol(Symbol. Implements com.
| |
| visitWildcardType | back to summary |
|---|---|
| public String visitWildcardType(Type. Implements com.
| |