|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDOMPointer
public final class DOMPointer
A pointer into a node. Points to a node, and an offset within it.
Cf. DOM Traversal and Range, and org.w3c.dom.ranges.Range.
| Field Summary | |
|---|---|
Node |
node
The node pointed at. |
int |
offset
The offset pointed at, within the node. |
| Constructor Summary | |
|---|---|
DOMPointer()
Creates a DOMPointer with an initial node of null. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Returns true iff o is a DOMPointer, and points to an 'equals' node and offset. |
DOMPointer |
lastTextOffset(Node parent)
Positions the pointer at the last offset among Text children of the specified parent. |
DOMPointer |
lastTextOffsetOrNode(Node parent)
Positions the pointer at the last offset among Text children of the specified parent, or the last non-Text child, whichever comes later. |
DOMPointer |
nextTextOffset()
Moves this pointer forward to the next Text offset among sibling nodes. |
DOMPointer |
nextTextOffsetOrNode()
Moves this pointer forward to the next Text offset, or the next non-Text sibling node, whichever comes first. |
DOMPointer |
previousTextOffset()
Moves this pointer back to the previous Text offset among sibling nodes. |
DOMPointer |
previousTextOffsetOrNode()
Moves this pointer back to the previous Text offset, or the previous non-Text sibling node, whichever comes first. |
DOMPointer |
set(Node node,
int offset)
|
DOMPointer |
setFrom(DOMPointer other)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Node node
public int offset
| Constructor Detail |
|---|
public DOMPointer()
| Method Detail |
|---|
public DOMPointer lastTextOffset(Node parent)
public DOMPointer lastTextOffsetOrNode(Node parent)
public DOMPointer nextTextOffset()
public DOMPointer nextTextOffsetOrNode()
public DOMPointer previousTextOffset()
public DOMPointer previousTextOffsetOrNode()
public DOMPointer set(Node node,
int offset)
node - per nodeoffset - per offset
public DOMPointer setFrom(DOMPointer other)
other - pointer, whose node and offset to assign to this pointer
public boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||