|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.tinytree.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 | |
protected int[] |
alpha
|
protected int[] |
attCode
|
protected int[] |
attParent
|
protected int[] |
attTypeCode
|
protected java.lang.CharSequence[] |
attValue
|
protected int[] |
beta
|
protected char[] |
charBuffer
|
protected int |
charBufferLength
|
protected FastStringBuffer |
commentBuffer
|
protected short[] |
depth
|
protected int |
documentNumber
|
protected int[] |
nameCode
|
protected int[] |
namespaceCode
|
protected int[] |
namespaceParent
|
protected int[] |
next
|
protected byte[] |
nodeKind
|
protected int |
numberOfAttributes
|
protected int |
numberOfNamespaces
|
protected int |
numberOfNodes
|
protected int[] |
prior
|
protected int[] |
typeCodeArray
|
Constructor Summary | |
TinyTree()
|
|
TinyTree(int nodes,
int attributes,
int namespaces,
int characters)
|
Method Summary | |
void |
condense()
Condense the tree: release unused memory. |
void |
diagnosticDump()
Produce diagnostic print of main tree arrays |
Configuration |
getConfiguration()
Get the configuration previously set using setConfiguration |
int |
getDocumentNumber()
Get the document number (actually, the tree number) |
NamePool |
getNamePool()
Get the name pool used for the names in this document |
TinyNodeImpl |
getNode(int nr)
|
int |
getNumberOfNodes()
Get the number of nodes in the tree, excluding attributes and namespace nodes |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int documentNumber
protected char[] charBuffer
protected int charBufferLength
protected FastStringBuffer commentBuffer
protected int numberOfNodes
protected byte[] nodeKind
protected short[] depth
protected int[] next
protected int[] alpha
protected int[] beta
protected int[] nameCode
protected int[] prior
protected int[] typeCodeArray
protected int numberOfAttributes
protected int[] attParent
protected int[] attCode
protected java.lang.CharSequence[] attValue
protected int[] attTypeCode
protected int numberOfNamespaces
protected int[] namespaceParent
protected int[] namespaceCode
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 void condense()
public TinyNodeImpl getNode(int nr)
public void setLineNumbering()
public int getDocumentNumber()
public void diagnosticDump()
public void showSize()
public int getNumberOfNodes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |