public class Nodes extends Values implements org.w3c.dom.NodeList
attrStart, BEGIN_ATTRIBUTE_LONG, BEGIN_ATTRIBUTE_LONG_SIZE, BEGIN_DOCUMENT, BEGIN_ELEMENT_LONG, BEGIN_ELEMENT_SHORT, BEGIN_ELEMENT_SHORT_INDEX_MAX, BEGIN_ENTITY, BEGIN_ENTITY_SIZE, data, docStart, DOCUMENT_URI, END_ATTRIBUTE_SIZE, END_DOCUMENT, END_ELEMENT_LONG, END_ELEMENT_SHORT, END_ENTITY, gapEnd, gapStart, INT_FOLLOWS, MAX_CHAR_SHORT, objects, oindex, POSITION_PAIR_FOLLOWS, PROCESSING_INSTRUCTION
Constructor and Description |
---|
Nodes() |
Modifier and Type | Method and Description |
---|---|
Consumer |
append(java.lang.CharSequence csq,
int start,
int end) |
void |
beginEntity(java.lang.Object base) |
void |
endAttribute()
End of an attribute or end of an actual parameter.
|
void |
endDocument() |
void |
endElement() |
void |
endEntity() |
int |
find(java.lang.Object seq) |
java.lang.Object |
get(int index)
See java.util.List.
|
int |
getLength() |
int |
getPos(int index)
Optimization of ((SeqPosition) get(index)).
|
java.lang.Object |
getPosNext(int ipos)
Get the element following the specified position.
|
AbstractSequence |
getSeq(int index)
Optimization of ((SeqPosition) get(index)).sequence.
|
org.w3c.dom.Node |
item(int index) |
static KNode |
root(NodeTree seq,
int ipos) |
int |
size()
See java.util.List.
|
void |
startAttribute(java.lang.Object attrType)
Write a attribute for the current element.
|
void |
startDocument() |
void |
startElement(java.lang.Object type) |
void |
write(char[] buf,
int off,
int len) |
void |
write(java.lang.CharSequence str,
int start,
int length) |
void |
write(int v) |
void |
write(java.lang.String str) |
void |
writeBoolean(boolean v) |
void |
writeCDATA(char[] chars,
int offset,
int length) |
void |
writeComment(char[] chars,
int offset,
int length) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeObject(java.lang.Object v) |
void |
writePosition(AbstractSequence seq,
int ipos)
Consume a single position pair.
|
void |
writeProcessingInstruction(java.lang.String target,
char[] content,
int offset,
int length) |
call_with, canonicalize, countValues, getValues, make, make, make, make, make, nextIndex, nextValue, print, readExternal, readResolve, values, writeExternal, writeValues
append, append, clear, compare, consume, consume, consumeIRange, consumeNext, consumePosRange, createPos, createRelativePos, documentUriOfPos, dump, dump, dump, ensureSpace, firstAttributePos, firstChildPos, getAttributeCount, getIndexDifference, getIntN, getLongN, getNextKind, getNextKindI, getNextTypeName, getNextTypeObject, getPosNextInt, getPosPrevious, gotoAttributesStart, gotoAttributesStart, gotoChildrenStart, hashCode, hasNext, ignoring, isEmpty, nextDataIndex, nextMatching, nextNodeIndex, nextPos, parentOrEntityI, parentOrEntityPos, parentPos, posToDataIndex, resizeObjects, setAttributeName, setElementName, setIntN, startAttribute, startElement, statistics, statistics, stringValue, stringValue, stringValue, toString, writeByte, writeComment, writeDocumentUri, writeJoiner, writeProcessingInstruction
add, add, addAll, addAll, addPos, compare, compare, contains, containsAll, copyPos, elements, endPos, equals, equals, fill, fill, fillPosRange, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIterator, getIterator, getIteratorAtPos, getLowBound, getSize, gotoChildrenStart, gotoParent, hasPrevious, indexOf, isAfterPos, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setPosNext, setPosPrevious, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, unsupported, unsupportedException
public void writePosition(AbstractSequence seq, int ipos)
PositionConsumer
writePosition
in interface PositionConsumer
writePosition
in class TreeList
public void writeObject(java.lang.Object v)
writeObject
in interface Consumer
writeObject
in class TreeList
public void writeFloat(float v)
writeFloat
in interface Consumer
writeFloat
in class TreeList
public void writeDouble(double v)
writeDouble
in interface Consumer
writeDouble
in class TreeList
public void writeLong(long v)
public void writeInt(int v)
public void writeBoolean(boolean v)
writeBoolean
in interface Consumer
writeBoolean
in class TreeList
public void write(int v)
public Consumer append(java.lang.CharSequence csq, int start, int end)
public void write(char[] buf, int off, int len)
public void write(java.lang.CharSequence str, int start, int length)
public void write(java.lang.String str)
public void startElement(java.lang.Object type)
startElement
in interface Consumer
startElement
in class TreeList
public void endElement()
endElement
in interface Consumer
endElement
in class TreeList
public void startAttribute(java.lang.Object attrType)
Consumer
startAttribute
in interface Consumer
startAttribute
in class TreeList
public void endAttribute()
Consumer
endAttribute
in interface Consumer
endAttribute
in class TreeList
public void writeComment(char[] chars, int offset, int length)
writeComment
in interface XConsumer
writeComment
in class TreeList
public void writeCDATA(char[] chars, int offset, int length)
writeCDATA
in interface XConsumer
writeCDATA
in class TreeList
public void writeProcessingInstruction(java.lang.String target, char[] content, int offset, int length)
writeProcessingInstruction
in interface XConsumer
writeProcessingInstruction
in class TreeList
public void startDocument()
startDocument
in interface Consumer
startDocument
in class TreeList
public void endDocument()
endDocument
in interface Consumer
endDocument
in class TreeList
public void beginEntity(java.lang.Object base)
beginEntity
in interface XConsumer
beginEntity
in class TreeList
public void endEntity()
public int size()
AbstractSequence
public int getLength()
getLength
in interface org.w3c.dom.NodeList
public java.lang.Object get(int index)
AbstractSequence
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NodeList
public java.lang.Object getPosNext(int ipos)
AbstractSequence
getPosNext
in class TreeList
ipos
- the specified position.public AbstractSequence getSeq(int index)
public int getPos(int index)