Class TypeReMapper


  • public final class TypeReMapper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeReMapper()  
    • Method Summary

      Modifier and Type Method Description
      TypeReMapper addClassMapping​(java.lang.Class<?> fromType, java.lang.Class<?> toType)
      Add a class remapping from one Class type to another.
      TypeReMapper addClassMapping​(java.lang.Class<?> fromType, java.lang.String toType)
      Add a class remapping from one Class type to another.
      TypeReMapper addClassMapping​(java.lang.String fromType, java.lang.Class<?> toType)
      Add a class remapping from one Class type to another.
      TypeReMapper addClassMapping​(java.lang.String fromType, java.lang.String toType)
      Add a class remapping from one Class type to another.
      TypeReMapper addPackageMapping​(java.lang.Package fromType, java.lang.Package toType)
      Add a type remapping from one Package to another.
      TypeReMapper addPackageMapping​(java.lang.Package fromType, java.lang.String toType)
      Add a type remapping from one Package to another.
      TypeReMapper addPackageMapping​(java.lang.String fromType, java.lang.Package toType)
      Add a type remapping from one Package to another.
      TypeReMapper addPackageMapping​(java.lang.String fromType, java.lang.String toType)
      Add a type remapping from one Package to another.
      TypeReMapper copy()
      Clone this TypeReMapper and internal state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypeReMapper

        public TypeReMapper()
    • Method Detail

      • addClassMapping

        public TypeReMapper addClassMapping​(java.lang.String fromType,
                                            java.lang.String toType)
        Add a class remapping from one Class type to another.
        Parameters:
        fromType - Class to map from
        toType - Class to map to
      • addClassMapping

        public TypeReMapper addClassMapping​(java.lang.Class<?> fromType,
                                            java.lang.String toType)
        Add a class remapping from one Class type to another.
        Parameters:
        fromType - Class to map from
        toType - Class to map to
      • addClassMapping

        public TypeReMapper addClassMapping​(java.lang.String fromType,
                                            java.lang.Class<?> toType)
        Add a class remapping from one Class type to another.
        Parameters:
        fromType - Class to map from
        toType - Class to map to
      • addClassMapping

        public TypeReMapper addClassMapping​(java.lang.Class<?> fromType,
                                            java.lang.Class<?> toType)
        Add a class remapping from one Class type to another.
        Parameters:
        fromType - Class to map from
        toType - Class to map to
      • addPackageMapping

        public TypeReMapper addPackageMapping​(java.lang.String fromType,
                                              java.lang.String toType)
        Add a type remapping from one Package to another.
        Parameters:
        fromType - Package to map from
        toType - Package to map to
      • addPackageMapping

        public TypeReMapper addPackageMapping​(java.lang.Package fromType,
                                              java.lang.String toType)
        Add a type remapping from one Package to another.
        Parameters:
        fromType - Package to map from
        toType - Package to map to
      • addPackageMapping

        public TypeReMapper addPackageMapping​(java.lang.String fromType,
                                              java.lang.Package toType)
        Add a type remapping from one Package to another.
        Parameters:
        fromType - Package to map from
        toType - Package to map to
      • addPackageMapping

        public TypeReMapper addPackageMapping​(java.lang.Package fromType,
                                              java.lang.Package toType)
        Add a type remapping from one Package to another.
        Parameters:
        fromType - Package to map from
        toType - Package to map to