This is needed when the original based sequence needs to be un-escaped but offsets to original escaped text are needed.
These replacements can be nested so that you can track replacements of replaced text. To add nested replacements use startNestedReplacement()
when isModified() returns true then the text mapper is already used and nested replacements need to be applied
| Modifier and Type | Field and Description |
|---|---|
| private BasedSequence | |
| private ReplacedTextMapper | |
| private ArrayList | |
| private int | |
| private ArrayList | |
| private BasedSequence |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| public ReplacedTextMapper | |
| public ArrayList | |
| public int | |
| public ArrayList | |
| public BasedSequence | |
| public boolean | |
| public boolean | |
| public int | |
| private int | |
| public void |
| original | back to summary |
|---|---|
| private BasedSequence original | |
| parent | back to summary |
|---|---|
| private ReplacedTextMapper parent | |
| regions | back to summary |
|---|---|
| private ArrayList<ReplacedTextRegion> regions | |
| replacedLength | back to summary |
|---|---|
| private int replacedLength | |
| replacedSegments | back to summary |
|---|---|
| private ArrayList<BasedSequence> replacedSegments | |
| replacedSequence | back to summary |
|---|---|
| private BasedSequence replacedSequence | |
| ReplacedTextMapper | back to summary |
|---|---|
| public ReplacedTextMapper(BasedSequence original) | |
| ReplacedTextMapper | back to summary |
|---|---|
| private ReplacedTextMapper(ReplacedTextMapper other) | |
| addOriginalText | back to summary |
|---|---|
| public void addOriginalText(int startIndex, int endIndex) | |
| addReplacedText | back to summary |
|---|---|
| public void addReplacedText(int startIndex, int endIndex, BasedSequence replacedSequence) | |
| finalizeMods | back to summary |
|---|---|
| private void finalizeMods() | |
| getParent | back to summary |
|---|---|
| public ReplacedTextMapper getParent() | |
| getRegions | back to summary |
|---|---|
| public ArrayList | |
| getReplacedLength | back to summary |
|---|---|
| public int getReplacedLength() | |
| getReplacedSegments | back to summary |
|---|---|
| public ArrayList | |
| getReplacedSequence | back to summary |
|---|---|
| public BasedSequence getReplacedSequence() | |
| isFinalized | back to summary |
|---|---|
| public boolean isFinalized() | |
| isModified | back to summary |
|---|---|
| public boolean isModified() | |
| originalOffset | back to summary |
|---|---|
| public int originalOffset(int replacedIndex) | |
| parentOriginalOffset | back to summary |
|---|---|
| private int parentOriginalOffset(int originalIndex) | |
| startNestedReplacement | back to summary |
|---|---|
| public void startNestedReplacement(BasedSequence sequence) | |