Class ContainerMappingMethod

All Implemented Interfaces:
Writable
Direct Known Subclasses:
IterableMappingMethod, StreamMappingMethod

public abstract class ContainerMappingMethod extends NormalTypeMappingMethod
A MappingMethod implemented by a Mapper class which does mapping of generic types. For example Iterable or Stream. The generic elements are mapped either by a TypeConversion or another mapping method.
Author:
Filip Hrisafov
  • Method Details

    • getSourceParameter

      public Parameter getSourceParameter()
    • getSourceParameterPresenceCheck

      public PresenceCheck getSourceParameterPresenceCheck()
    • getIterableCreation

      public IterableCreation getIterableCreation()
    • getElementAssignment

      public Assignment getElementAssignment()
    • getImportTypes

      public 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.
      Overrides:
      getImportTypes in class NormalTypeMappingMethod
      Returns:
      A set with type referenced by this model element. Must not be null.
    • getLoopVariableName

      public String getLoopVariableName()
    • getResultElementType

      public abstract Type getResultElementType()
    • getIndex1Name

      public String getIndex1Name()
    • getIndex2Name

      public String getIndex2Name()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class NormalTypeMappingMethod
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class NormalTypeMappingMethod