Class JaxbElemToValue
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.builtin.BuiltInMethod
-
- org.mapstruct.ap.internal.model.source.builtin.JaxbElemToValue
-
- All Implemented Interfaces:
Method
public class JaxbElemToValue extends BuiltInMethod
- Author:
- Sjaak Derksen
-
-
Constructor Summary
Constructors Constructor Description JaxbElemToValue(TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doTypeVarsMatch(Type sourceType, Type targetType)
Analyzes the Java Generic type variables in the parameter do match the type variables in the build in method same goes for the returnType.Set<Type>
getImportTypes()
Returns the types used by this method for which import statements need to be generated.Parameter
getParameter()
There's currently only one parameter foreseen instead of a list of parameterType
getReturnType()
Returns the return type of the method-
Methods inherited from class org.mapstruct.ap.internal.model.source.builtin.BuiltInMethod
describe, equals, getAccessibility, getConstructorFragment, getContextParameter, getContextParameters, getContextProvidedMethods, getDeclaringMapper, getDefiningType, getExecutable, getFieldReference, getMappingTargetParameter, getName, getOptions, getParameterNames, getParameters, getResultType, getSourceParameters, getTargetTypeParameter, getThrownTypes, getTypeParameters, hashCode, isDefault, isLifecycleCallbackMethod, isObjectFactory, isStatic, isUpdateMethod, matches, overridesMethod
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mapstruct.ap.internal.model.source.Method
getMappingSourceType, isMappingTargetAssignableToReturnType, isPresenceCheck
-
-
-
-
Constructor Detail
-
JaxbElemToValue
public JaxbElemToValue(TypeFactory typeFactory)
-
-
Method Detail
-
doTypeVarsMatch
public boolean doTypeVarsMatch(Type sourceType, Type targetType)
Description copied from class:BuiltInMethod
Analyzes the Java Generic type variables in the parameter do match the type variables in the build in method same goes for the returnType.- Overrides:
doTypeVarsMatch
in classBuiltInMethod
- Parameters:
sourceType
- sourcetargetType
- target- Returns:
true
, iff the the type variables match
-
getParameter
public Parameter getParameter()
Description copied from class:BuiltInMethod
There's currently only one parameter foreseen instead of a list of parameter- Specified by:
getParameter
in classBuiltInMethod
- Returns:
- the parameter
-
getReturnType
public Type getReturnType()
Description copied from interface:Method
Returns the return type of the method- Returns:
- return type
-
getImportTypes
public Set<Type> getImportTypes()
Description copied from class:BuiltInMethod
Returns 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:
getImportTypes
in classBuiltInMethod
- Returns:
- the types used by this method for which import statements need to be generated
-
-