public class MappingSetMergerImpl extends Object implements MappingSetMerger
MappingSetMerger.| Constructor and Description |
|---|
MappingSetMergerImpl(MappingSet left,
MappingSet right,
MergeConfig config) |
| Modifier and Type | Method and Description |
|---|---|
MappingSet |
merge(MappingSet target)
Merge the two
MappingSets in this merger together into the provided target. |
protected <T extends ClassMapping<T,?>> |
mergeClass(T left,
T right,
T newMapping) |
FieldMapping |
mergeField(FieldMapping left,
FieldMapping right,
ClassMapping<?,?> target)
Merge the two provided
FieldMappings together into the provided target. |
protected FieldMapping |
mergeFieldInternal(FieldMapping left,
FieldMapping strictRightContinuation,
FieldMapping looseRightContinuation,
FieldMapping strictRightDuplicate,
FieldMapping looseRightDuplicate,
ClassMapping<?,?> target) |
InnerClassMapping |
mergeInnerClass(InnerClassMapping left,
InnerClassMapping right,
ClassMapping<?,?> target)
Merge the members of the two provided
InnerClassMappings together into the provided target. |
protected InnerClassMapping |
mergeInnerClassInternal(InnerClassMapping left,
InnerClassMapping rightContinuation,
InnerClassMapping rightDuplicate,
ClassMapping<?,?> target) |
MethodMapping |
mergeMethod(MethodMapping left,
MethodMapping right,
ClassMapping<?,?> target)
Merge the two provided
MethodMappings together into the provided target. |
protected MethodMapping |
mergeMethodInternal(MethodMapping left,
MethodMapping strictRightContinuation,
MethodMapping looseRightContinuation,
MethodMapping strictRightDuplicate,
MethodMapping looseRightDuplicate,
ClassMapping<?,?> target) |
protected void |
mergeMethodInto(MethodMapping left,
MethodMapping right,
MethodMapping newMapping) |
MethodParameterMapping |
mergeMethodParameter(MethodParameterMapping left,
MethodParameterMapping right,
MethodMapping target)
Merge the two provided
MethodParameterMappings together into the provided target. |
TopLevelClassMapping |
mergeTopLevelClass(TopLevelClassMapping left,
TopLevelClassMapping right,
MappingSet target)
Merge the members of the two provided
TopLevelClassMappings together into the provided target. |
protected TopLevelClassMapping |
mergeTopLevelClassInternal(TopLevelClassMapping left,
TopLevelClassMapping rightContinuation,
TopLevelClassMapping rightDuplicate,
MappingSet target) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, mergepublic MappingSetMergerImpl(MappingSet left, MappingSet right, MergeConfig config)
public MappingSet merge(MappingSet target)
MappingSetMergerMappingSets in this merger together into the provided target. For ease of use the
provided target mapping set is also returned.merge in interface MappingSetMergertarget - The mapping set to insert the merged mappings intotarget parameter.public TopLevelClassMapping mergeTopLevelClass(TopLevelClassMapping left, TopLevelClassMapping right, MappingSet target)
MappingSetMergerTopLevelClassMappings together into the provided target.mergeTopLevelClass in interface MappingSetMergerleft - The class mapping for the left side of the merge. May be null.right - The class mapping for the right side of the merge. May be null.target - The mapping set to insert the new merged mapping into. May not be null.null if the mapping is to be removed.protected TopLevelClassMapping mergeTopLevelClassInternal(TopLevelClassMapping left, TopLevelClassMapping rightContinuation, TopLevelClassMapping rightDuplicate, MappingSet target)
public InnerClassMapping mergeInnerClass(InnerClassMapping left, InnerClassMapping right, ClassMapping<?,?> target)
MappingSetMergerInnerClassMappings together into the provided target.mergeInnerClass in interface MappingSetMergerleft - The class mapping for the left side of the merge. May be null.right - The class mapping for the right side of the merge. May be null.target - The class mapping to insert the new merged mapping into. May not be null.null if the mapping is to be removed.protected InnerClassMapping mergeInnerClassInternal(InnerClassMapping left, InnerClassMapping rightContinuation, InnerClassMapping rightDuplicate, ClassMapping<?,?> target)
public FieldMapping mergeField(FieldMapping left, FieldMapping right, ClassMapping<?,?> target)
MappingSetMergerFieldMappings together into the provided target.mergeField in interface MappingSetMergerleft - The field mapping for the left side of the merge. May be null.right - The field mapping for the right side of the merge. May be null.target - The class mapping to insert the new merged mapping into. May not be null.null if the mapping is to be removed.protected FieldMapping mergeFieldInternal(FieldMapping left, FieldMapping strictRightContinuation, FieldMapping looseRightContinuation, FieldMapping strictRightDuplicate, FieldMapping looseRightDuplicate, ClassMapping<?,?> target)
public MethodMapping mergeMethod(MethodMapping left, MethodMapping right, ClassMapping<?,?> target)
MappingSetMergerMethodMappings together into the provided target.mergeMethod in interface MappingSetMergerleft - The method mapping for the left side of the merge. May be null.right - The method mapping for the right side of the merge. May be null.target - The class mapping to insert the new merged mapping into. May not be null.null if the mapping is to be removed.protected MethodMapping mergeMethodInternal(MethodMapping left, MethodMapping strictRightContinuation, MethodMapping looseRightContinuation, MethodMapping strictRightDuplicate, MethodMapping looseRightDuplicate, ClassMapping<?,?> target)
protected void mergeMethodInto(MethodMapping left, MethodMapping right, MethodMapping newMapping)
public MethodParameterMapping mergeMethodParameter(MethodParameterMapping left, MethodParameterMapping right, MethodMapping target)
MappingSetMergerMethodParameterMappings together into the provided target.mergeMethodParameter in interface MappingSetMergerleft - The method parameter mapping for the left side of the merge. May be null.right - The method parameter mapping for the right side of the merge. May be null.target - The method mapping to insert the new merged mapping into. May not be null.null if the mapping is to be removed.protected <T extends ClassMapping<T,?>> void mergeClass(T left, T right, T newMapping)