|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.data.PathNode
public final class PathNode
This class represents a node of the path summary.
| Field Summary | |
|---|---|
PathNode[] |
ch
Children. |
int |
count
Tag counter. |
byte |
kind
Node kind, defined in the Data class. |
short |
name
Tag/attribute name reference. |
PathNode |
par
Parent. |
double |
tl
Average text length. |
| Method Summary | |
|---|---|
void |
addDesc(java.util.ArrayList<PathNode> nodes)
Recursively adds the node and its descendants to the specified list. |
int |
level()
Returns the level of the path node. |
byte[] |
token(Data data)
Returns a readable representation of this node. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final short name
public final byte kind
Data class.
public int count
public PathNode par
public PathNode[] ch
public double tl
| Method Detail |
|---|
public void addDesc(java.util.ArrayList<PathNode> nodes)
nodes - node listpublic byte[] token(Data data)
data - data reference
public int level()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||