Class CreateDecimalFormat
java.lang.Object
org.mapstruct.ap.internal.model.HelperMethod
org.mapstruct.ap.internal.conversion.CreateDecimalFormat
- All Implemented Interfaces:
Method
HelperMethod that creates a
DecimalFormat
DecimalFormat df = new DecimalFormat( numberFormat )
with setParseBigDecimal set to true.- Author:
- Sjaak Derksen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns the types used by this method for which import statements need to be generated.getName()Returns then name of the method.There's currently only one parameter foreseen instead of a list of parameterIn contrast toMethod.getSourceParameters()this method returns all parametersReturns the return type of the methodMethods inherited from class org.mapstruct.ap.internal.model.HelperMethod
doTypeVarsMatch, equals, getAccessibility, getContextParameter, getContextParameters, getContextProvidedMethods, getDeclaringMapper, getDefiningType, getExecutable, getMappingTargetParameter, getParameterNames, getResultType, getSourceParameters, getTargetTypeParameter, getThrownTypes, getTypeParameters, hashCode, isDefault, isLifecycleCallbackMethod, isObjectFactory, isStatic, isUpdateMethod, matches, overridesMethodMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mapstruct.ap.internal.model.source.Method
getConditionOptions, getMappingSourceType
-
Constructor Details
-
CreateDecimalFormat
-
-
Method Details
-
getName
Description copied from class:HelperMethodReturns then name of the method.- Specified by:
getNamein interfaceMethod- Overrides:
getNamein classHelperMethod- Returns:
- default method name is equal to class name of build in method name
-
getImportTypes
Description copied from class:HelperMethodReturns the types used by this method for which import statements need to be generated. Defaults to the empty set. To be overridden by implementations in case they make use of additional types (note that the parameter and return type don't need to be added).- Overrides:
getImportTypesin classHelperMethod- Returns:
- the types used by this method for which import statements need to be generated
-
getParameter
Description copied from class:HelperMethodThere's currently only one parameter foreseen instead of a list of parameter- Specified by:
getParameterin classHelperMethod- Returns:
- the parameter
-
getReturnType
Description copied from interface:MethodReturns the return type of the method- Returns:
- return type
-
getOptions
- Returns:
- the mapping options for this method
-
describe
- Returns:
- the short name for error messages when verbose, full name when not
-
getParameters
Description copied from interface:MethodIn contrast toMethod.getSourceParameters()this method returns all parameters- Specified by:
getParametersin interfaceMethod- Overrides:
getParametersin classHelperMethod- Returns:
- all parameters
-