|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.tinytree.TinyTree
public final class TinyTree
A data structure to hold the contents of a tree. As the name implies, this implementation of the data model is optimized for size, and for speed of creation: it minimizes the number of Java objects used.
It can be used to represent a tree that is rooted at a document node, or one that is rooted at an element node.
Field Summary | |
---|---|
byte[] |
nodeKind
|
Constructor Summary | |
---|---|
TinyTree()
|
|
TinyTree(int nodes,
int attributes,
int namespaces,
int characters)
|
Method Summary | |
---|---|
void |
diagnosticDump()
Produce diagnostic print of main tree arrays |
static void |
diagnosticDump(NodeInfo node)
Create diagnostic dump of the tree containing a particular node. |
int[] |
getAlphaArray()
|
int[] |
getAttributeNameCodeArray()
|
int[] |
getAttributeParentArray()
|
int[] |
getAttributeTypeCodeArray()
|
CharSequence[] |
getAttributeValueArray()
|
int[] |
getBetaArray()
|
CharSequence |
getCharacterBuffer()
|
CharSequence |
getCommentBuffer()
|
Configuration |
getConfiguration()
Get the configuration previously set using setConfiguration |
int |
getDocumentNumber()
Get the document number (actually, the tree number) |
int |
getNameCode(int nodeNr)
Get the nameCode for a given node, which must be a document, element, text, comment, or processing instruction node |
int[] |
getNameCodeArray()
|
NamePool |
getNamePool()
Get the name pool used for the names in this document |
int[] |
getNamespaceCodeArray()
|
int[] |
getNamespaceParentArray()
|
int[] |
getNextPointerArray()
|
TinyNodeImpl |
getNode(int nr)
|
short[] |
getNodeDepthArray()
|
int |
getNodeKind(int nodeNr)
Get the node kind of a given node, which must be a document, element, text, comment, or processing instruction node |
byte[] |
getNodeKindArray()
|
int |
getNumberOfAttributes()
|
int |
getNumberOfNamespaces()
|
int |
getNumberOfNodes()
Get the number of nodes in the tree, excluding attributes and namespace nodes |
int |
getTypeAnnotation(int nodeNr)
Get the type annotation of a node. |
int[] |
getTypeCodeArray()
|
void |
indexIDElement(NodeInfo root,
int nodeNr,
NameChecker checker)
Index an element of type xs:ID |
boolean |
isIdrefAttribute(int nr)
Determine whether an attribute is an IDREF/IDREFS attribute. |
boolean |
isIdrefElement(int nr)
Determine whether an element is an IDREF/IDREFS element. |
boolean |
isNilled(int nodeNr)
Determine whether a given node is nilled |
void |
setConfiguration(Configuration config)
Set the Configuration that contains this document |
void |
setLineNumbering()
Set line numbering on |
void |
showSize()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte[] nodeKind
Constructor Detail |
---|
public TinyTree()
public TinyTree(int nodes, int attributes, int namespaces, int characters)
Method Detail |
---|
public void setConfiguration(Configuration config)
public Configuration getConfiguration()
public NamePool getNamePool()
public int getTypeAnnotation(int nodeNr)
public int getNodeKind(int nodeNr)
nodeNr
- the node number
public int getNameCode(int nodeNr)
nodeNr
- the node number
public void indexIDElement(NodeInfo root, int nodeNr, NameChecker checker)
public final TinyNodeImpl getNode(int nr)
public boolean isIdrefAttribute(int nr)
public boolean isIdrefElement(int nr)
public void setLineNumbering()
public int getDocumentNumber()
public boolean isNilled(int nodeNr)
public void diagnosticDump()
public static void diagnosticDump(NodeInfo node)
public void showSize()
public int getNumberOfNodes()
public int getNumberOfAttributes()
public int getNumberOfNamespaces()
public byte[] getNodeKindArray()
public short[] getNodeDepthArray()
public int[] getNameCodeArray()
public int[] getTypeCodeArray()
public int[] getNextPointerArray()
public int[] getAlphaArray()
public int[] getBetaArray()
public CharSequence getCharacterBuffer()
public CharSequence getCommentBuffer()
public int[] getAttributeNameCodeArray()
public int[] getAttributeTypeCodeArray()
public int[] getAttributeParentArray()
public CharSequence[] getAttributeValueArray()
public int[] getNamespaceCodeArray()
public int[] getNamespaceParentArray()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |