|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.stree.LevelIndexer
The XPath class represents the semantic parse tree of the XPath pattern. It is the representation of the grammar which filters out the choice for replacement order of the production rules. In order to conserve memory and reduce object creation, the tree is represented as an array of integers: [op code][length][...] where strings are represented within the array as indexes into the token tree.
Constructor Summary | |
LevelIndexer()
Create a LevelIndexer object. |
Method Summary | |
int |
addToTable(Child child)
**For internal use only** Add a node to the types table. |
java.lang.Object[] |
allocateNewList(java.lang.Object[] nodesList)
**For internal use only** Get a list of nodes in the level array by level and by type. |
int |
getIndexForType(Node child,
int type,
java.lang.Object[] nodesList)
**For internal use only** Get index pointing to nodes of a certain type in the nodeslist. |
java.lang.Object[] |
getNodesList(int level)
**For internal use only** Get a list of nodes in the level array by level and by type. |
short |
getType(Node node)
**For internal use only** Get type. |
short |
getType(java.lang.String name,
java.lang.String namespace,
java.lang.String prepend)
**For internal use only** Get type. |
void |
insertNode(Child child)
**For internal use only** Insert a node in the nodesList by level, by parent and by type. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LevelIndexer()
Method Detail |
public void insertNode(Child child)
public java.lang.Object[] getNodesList(int level)
public java.lang.Object[] allocateNewList(java.lang.Object[] nodesList)
public int getIndexForType(Node child, int type, java.lang.Object[] nodesList)
public int addToTable(Child child)
public short getType(java.lang.String name, java.lang.String namespace, java.lang.String prepend)
public short getType(Node node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |