Class MappingMethod

    • Field Detail

      • name

        private final java.lang.String name
      • parameters

        private final java.util.List<Parameter> parameters
      • sourceParameters

        private final java.util.List<Parameter> sourceParameters
      • returnType

        private final Type returnType
      • targetParameter

        private final Parameter targetParameter
      • thrownTypes

        private final java.util.List<Type> thrownTypes
      • isStatic

        private final boolean isStatic
      • resultName

        private final java.lang.String resultName
    • Constructor Detail

      • MappingMethod

        protected MappingMethod​(Method method,
                                java.util.Collection<java.lang.String> existingVariableNames,
                                java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences,
                                java.util.List<LifecycleCallbackMethodReference> afterMappingReferences)
        constructor to be overloaded when local variable names are required prior to calling this constructor. (e.g. for property mappings). It is supposed to be initialized with at least the parameter names.
        Parameters:
        method - the method for which this mapping is applicable
        existingVariableNames - set of already assigned variable names
        beforeMappingReferences - all life cycle methods to be called prior to carrying out mapping
        afterMappingReferences - all life cycle methods to be called after carrying out mapping
      • MappingMethod

        protected MappingMethod​(Method method,
                                java.util.List<Parameter> parameters)
      • MappingMethod

        protected MappingMethod​(Method method)
    • Method Detail

      • initResultName

        private java.lang.String initResultName​(java.util.Collection<java.lang.String> existingVarNames)
      • getName

        public java.lang.String getName()
      • getParameters

        public java.util.List<Parameter> getParameters()
      • getSourceParameters

        public java.util.List<Parameter> getSourceParameters()
      • getResultType

        public Type getResultType()
      • getResultName

        public java.lang.String getResultName()
      • getReturnType

        public Type getReturnType()
      • isExistingInstanceMapping

        public boolean isExistingInstanceMapping()
      • isStatic

        public boolean isStatic()
      • getImportTypes

        public java.util.Set<Type> getImportTypes()
        Description copied from class: ModelElement
        Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
        Specified by:
        getImportTypes in class ModelElement
        Returns:
        A set with type referenced by this model element. Must not be null.
      • getParameterNames

        protected java.util.List<java.lang.String> getParameterNames()
      • getThrownTypes

        public java.util.List<Type> getThrownTypes()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object