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.

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.

Constructor Detail

Conventions

Method Detail

getVariableName

Determine the conventional variable name for the supplied Object
based on its concrete type. The convention used is to return the
un-capitalized short name of the Class, according to JavaBeans
property naming rules.

getVariableNameForReturnType

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. Object return type or untyped collection.

Parameters:

method - the method to generate a variable name for

value - the return value (may be null if not available)

Returns:

the generated variable name

getVariableNameForReturnType

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. Object return type or untyped collection.