| Modifier and Type | Field and Description |
|---|---|
| private static final String | PLURAL_SUFFIX
Suffix added to names when using arrays. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | attributeNameToPropertyName(String attributeName)
Convert |
| private static Class | Returns: the class to use for naming a variablethe value to check value)Determine the class to use for naming a variable containing the given value. |
| public static String | getQualifiedAttributeName(Class<?> enclosingClass, String attributeName)
Return an attribute name qualified by the given enclosing |
| public static String | Returns: the generated variable namethe value to generate a variable name for value)Determine the conventional variable name for the supplied |
| public static String | Returns: the generated variable namethe method or constructor parameter parameter)Determine the conventional variable name for the given parameter taking the generic collection type, if any, into account. |
| public static String | Returns: the generated variable namethe method to generate a variable name for method)Determine the conventional variable name for the return type of the given method, taking the generic collection type, if any, into account. |
| public static String | Returns: the generated variable namethe method to generate a variable name for method, Object the return value (may be value)null if not available)Determine the conventional variable name for the return type of the given
method, taking the generic collection type, if any, into account, falling
back on the given actual return value if the method declaration is not
specific enough, e.g. |
| public static String | Returns: the generated variable namethe method to generate a variable name for method, Class<?> the resolved return type of the method resolvedType, Object the return value (may be value)null if not available)Determine the conventional variable name for the return type of the given
method, taking the generic collection type, if any, into account, falling
back on the given return value if the method declaration is not specific
enough, e.g. |
| private static <E> E | |
| private static String |
| PLURAL_SUFFIX | back to summary |
|---|---|
| private static final String PLURAL_SUFFIX Suffix added to names when using arrays. | |
| Conventions | back to summary |
|---|---|
| private Conventions() | |
| attributeNameToPropertyName | back to summary |
|---|---|
| public static String attributeNameToPropertyName(String attributeName) Convert | |
| getClassForValue | back to summary |
|---|---|
| private static Class Determine the class to use for naming a variable containing the given value. Will return the class of the given value, except when encountering a JDK proxy, in which case it will determine the 'primary' interface implemented by that proxy. | |
| getQualifiedAttributeName | back to summary |
|---|---|
| public static String getQualifiedAttributeName(Class<?> enclosingClass, String attributeName) Return an attribute name qualified by the given enclosing | |
| getVariableName | back to summary |
|---|---|
| public static String getVariableName(Object value) Determine the conventional variable name for the supplied For example: For arrays the pluralized version of the array component type is used.
For | |
| getVariableNameForParameter | back to summary |
|---|---|
| public static String getVariableNameForParameter(MethodParameter parameter) Determine the conventional variable name for the given parameter taking the generic collection type, if any, into account. As of 5.0 this method supports reactive types:
| |
| getVariableNameForReturnType | back to summary |
|---|---|
| public static String getVariableNameForReturnType(Method method) Determine the conventional variable name for the return type of the given method, taking the generic collection type, if any, into account. | |
| getVariableNameForReturnType | back to summary |
|---|---|
| public static String getVariableNameForReturnType(Method method, Object value) Determine the conventional variable name for the return type of the given
method, taking the generic collection type, if any, into account, falling
back on the given actual return value if the method declaration is not
specific enough, e.g. | |
| getVariableNameForReturnType | back to summary |
|---|---|
| public static String getVariableNameForReturnType(Method method, Class<?> resolvedType, Object value) Determine the conventional variable name for the return type of the given
method, taking the generic collection type, if any, into account, falling
back on the given return value if the method declaration is not specific
enough, e.g. As of 5.0 this method supports reactive types: | |
| peekAhead | back to summary |
|---|---|
| private static <E> E peekAhead(Collection<E> collection) Retrieve the | |
| pluralize | back to summary |
|---|---|
| private static String pluralize(String name) Pluralize the given name. | |