public class IndexedRun extends Object
Constructor and Description |
---|
IndexedRun(int startIndex,
int endIndex,
int indexInParent,
org.docx4j.wml.R run) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getEndIndex()
|
int |
getIndexInParent()
|
int |
getLength()
|
org.docx4j.wml.R |
getRun()
|
int |
getStartIndex()
|
int |
hashCode()
|
boolean |
isTouchedByRange(int globalStartIndex,
int globalEndIndex)
Determines whether the specified range of start and end index touches
this run.
|
void |
replace(int globalStartIndex,
int globalEndIndex,
String replacement)
Replaces the substring starting at the given index with the given
replacement string.
|
String |
toString()
|
public IndexedRun(int startIndex, int endIndex, int indexInParent, org.docx4j.wml.R run)
public int getLength()
public int getStartIndex()
public int getEndIndex()
public int getIndexInParent()
public org.docx4j.wml.R getRun()
public boolean isTouchedByRange(int globalStartIndex, int globalEndIndex)
public void replace(int globalStartIndex, int globalEndIndex, String replacement)
globalStartIndex
- the global index (meaning the index relative to
multiple aggregated runs) at which to perform the replacement.
replacement
- the string to replace the substring at the specified
global index.
Copyright © 2016. All rights reserved.