public static class Mappings.OverridingSourceMapping extends Mappings.AbstractMapping implements Mappings.SourceMapping
Mappings.SourceMapping except for specific overriding elements.| Constructor and Description |
|---|
Mappings.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) |
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, getTargetOptpublic Mappings.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)
getSource in interface Mappings.SourceMappinggetSource in class Mappings.AbstractMappingpublic 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–2015 The Apache Software Foundation. All rights reserved.