public static class Mappings.OverridingSourceMapping extends Mappings.AbstractMapping implements Mappings.SourceMapping
Mappings.SourceMapping except for specific overriding elements.| Constructor and Description |
|---|
OverridingSourceMapping(Mappings.SourceMapping parent,
int source,
int target) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all elements in the mapping.
|
MappingType |
getMappingType()
Returns the mapping type.
|
int |
getSource(int target)
Returns the source that a target maps to.
|
Mapping |
inverse() |
boolean |
isIdentity()
Returns whether this mapping is the identity.
|
Iterator<IntPair> |
iterator()
Returns an iterator over the elements in this mapping.
|
int |
size()
Returns the number of elements in the mapping.
|
getSourceCount, getSourceOpt, getTarget, getTargetCount, getTargetOpt, set, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSourceCount, getSourceOpt, getTargetCount, getTargetOptforEach, spliteratorpublic OverridingSourceMapping(Mappings.SourceMapping parent, int source, int target)
public void clear()
Mappingpublic int size()
Mappings.CoreMappingsize in interface Mappingsize in interface Mappings.CoreMappingpublic Mapping inverse()
inverse in interface Mappings.SourceMappinginverse in interface Mappings.TargetMappingpublic MappingType getMappingType()
Mappings.CoreMappinggetMappingType in interface MappinggetMappingType in interface Mappings.CoreMappinggetMappingType in interface Mappings.FunctionMappinggetMappingType in interface Mappings.SourceMappingpublic int getSource(int target)
Mappings.SourceMappinggetSource in interface Mappings.SourceMappinggetSource in class Mappings.AbstractMappingtarget - targetpublic boolean isIdentity()
MappingisIdentity in interface MappingisIdentity in interface Mappings.SourceMappingisIdentity in class Mappings.AbstractMappingpublic Iterator<IntPair> iterator()
MappingThis method is optional; implementations may throw
UnsupportedOperationException.
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.