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, writeValuesappend, 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, writeProcessingInstructionadd, 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, unsupportedExceptionpublic void writePosition(AbstractSequence seq, int ipos)
PositionConsumerwritePosition in interface PositionConsumerwritePosition in class TreeListpublic void writeObject(java.lang.Object v)
writeObject in interface ConsumerwriteObject in class TreeListpublic void writeFloat(float v)
writeFloat in interface ConsumerwriteFloat in class TreeListpublic void writeDouble(double v)
writeDouble in interface ConsumerwriteDouble in class TreeListpublic void writeLong(long v)
public void writeInt(int v)
public void writeBoolean(boolean v)
writeBoolean in interface ConsumerwriteBoolean in class TreeListpublic 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 ConsumerstartElement in class TreeListpublic void endElement()
endElement in interface ConsumerendElement in class TreeListpublic void startAttribute(java.lang.Object attrType)
ConsumerstartAttribute in interface ConsumerstartAttribute in class TreeListpublic void endAttribute()
ConsumerendAttribute in interface ConsumerendAttribute in class TreeListpublic void writeComment(char[] chars,
int offset,
int length)
writeComment in interface XConsumerwriteComment in class TreeListpublic void writeCDATA(char[] chars,
int offset,
int length)
writeCDATA in interface XConsumerwriteCDATA in class TreeListpublic void writeProcessingInstruction(java.lang.String target,
char[] content,
int offset,
int length)
writeProcessingInstruction in interface XConsumerwriteProcessingInstruction in class TreeListpublic void startDocument()
startDocument in interface ConsumerstartDocument in class TreeListpublic void endDocument()
endDocument in interface ConsumerendDocument in class TreeListpublic void beginEntity(java.lang.Object base)
beginEntity in interface XConsumerbeginEntity in class TreeListpublic void endEntity()
public int size()
AbstractSequencepublic int getLength()
getLength in interface org.w3c.dom.NodeListpublic java.lang.Object get(int index)
AbstractSequencepublic org.w3c.dom.Node item(int index)
item in interface org.w3c.dom.NodeListpublic java.lang.Object getPosNext(int ipos)
AbstractSequencegetPosNext in class TreeListipos - the specified position.public AbstractSequence getSeq(int index)
public int getPos(int index)