StringConverter looking up annotations.
This class is immutable and thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final AnnotationStringConverterFactory | INSTANCE
Singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Class | |
| private < the type of the converter T> StringConverter | Returns: the converter, not nullthe class to find a method for, not null cls)Finds a converter searching annotated. |
| private < the type of the converter T> TypedFromStringConverter | Returns: the converter, null if not foundthe class to find a method for, not null cls)Finds a from-string converter. |
| public StringConverter | Returns: the converter, null if not foundthe type to lookup, not null cls)Implements org. |
| private Method | Returns: the method to call, null means not foundthe class to find a method for, not null cls)Finds the conversion method. |
| private < the type of the converter T> TypedFromStringConverter | Returns: the method to call, null means none foundthe class to find a method for, not null cls)Finds the conversion method. |
| pack-priv < the type of the converter T> TypedFromStringConverter | Returns: the converter, null if not foundthe type to lookup, not null cls)Finds a from-string converter by type. |
| private <T> TypedFromStringConverter | Returns: the method to call, null means not foundthe class to find a method for, not null cls, boolean whether to search superclasses searchSuperclasses)Finds the conversion method. |
| private Method | Returns: the method to call, null means usetoStringthe class to find a method for, not null cls)Finds the conversion method. |
| public String |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final AnnotationStringConverterFactory INSTANCE Singleton instance. | |
| AnnotationStringConverterFactory | back to summary |
|---|---|
| private AnnotationStringConverterFactory() Restricted constructor. | |
| eliminateEnumSubclass | back to summary |
|---|---|
| private Class | |
| findAnnotatedConverter | back to summary |
|---|---|
| private <T> StringConverter Finds a converter searching annotated.
| |
| findAnnotatedFromStringConverter | back to summary |
|---|---|
| private <T> TypedFromStringConverter Finds a from-string converter.
| |
| findConverter | back to summary |
|---|---|
| public StringConverter Implements org. Finds a converter by type.
| |
| findFromString | back to summary |
|---|---|
| private Method findFromString(Class<?> cls) Finds the conversion method.
| |
| findFromStringConstructor | back to summary |
|---|---|
| private <T> TypedFromStringConverter Finds the conversion method.
| |
| findFromStringConverter | back to summary |
|---|---|
| pack-priv <T> TypedFromStringConverter Finds a from-string converter by type.
| |
| findFromStringMethod | back to summary |
|---|---|
| private <T> TypedFromStringConverter Finds the conversion method.
| |
| findToStringMethod | back to summary |
|---|---|
| private Method findToStringMethod(Class<?> cls) Finds the conversion method.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |