public class SignatureMapper extends Object
TODO - despite the name, this data structure maps between two interners, not two signatures. We should rename the class at some point.
Constructor and Description |
---|
SignatureMapper(Interner input,
Interner output)
Creates a new mapper for the two given interners.
|
Modifier and Type | Method and Description |
---|---|
void |
recompute()
Recomputes the mappings.
|
int |
remapBackward(int symbolID)
Maps a symbolID from the output to the input signature.
|
int |
remapForward(int symbolID)
Maps a symbolID from the input to the output signature.
|
String |
toString() |
public int remapForward(int symbolID)
symbolID
- public int remapBackward(int symbolID)
symbolID
- public void recompute()
Copyright © 2017. All rights reserved.