public class Mark extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Releases this mark.
|
boolean |
contains(Mark that)
Does this mark contains the other mark?
|
boolean |
equals(Object o)
Check if two marks points to the same range.
|
int |
hashCode() |
boolean |
isLeftOf(Mark that) |
boolean |
isRightOf(Mark that) |
void |
replace(String replacement)
Replaces what this mark is pointing at by the specified text.
|
void |
set()
Update this mark to point to the current location.
|
void |
set(Mark that) |
Mark |
to(Mark that)
Creates a new mark that spans the range in between this and that mark.
|
Mark |
toCurrent()
Creates a new mark that spans the range in between this mark and the current position of
XmlPatcher. |
String |
toString() |
String |
verbatim()
Gets the XML text that this mark is pointing at.
|
public void clear()
XmlPatcher, so it'll leak memory unless it's cleared at the end.
A mark can also get automatically closed if an update to another mark renders this mark obsolete.public String verbatim()
public void replace(String replacement)
public void set()
public boolean isLeftOf(Mark that)
public boolean isRightOf(Mark that)
public void set(Mark that)
public boolean equals(Object o)
public boolean contains(Mark that)
public Mark toCurrent()
XmlPatcher.Copyright © 2013. All Rights Reserved.