org.basex.index.path
Class PathNode

java.lang.Object
  extended by org.basex.index.path.PathNode

public final class PathNode
extends java.lang.Object

This class represents a node of the path summary.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 PathNode[] ch
          Children.
 byte kind
          Node kind, defined in the Data class.
 short name
          Tag/attribute name id.
 PathNode par
          Parent.
 Stats stats
          Node kind.
 
Method Summary
 int level()
          Returns the level of the path node.
 byte[] token(Data data)
          Returns a readable representation of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final short name
Tag/attribute name id.


kind

public final byte kind
Node kind, defined in the Data class.


par

public final PathNode par
Parent.


ch

public PathNode[] ch
Children.


stats

public final Stats stats
Node kind.

Method Detail

token

public byte[] token(Data data)
Returns a readable representation of this node.

Parameters:
data - data reference
Returns:
completions

level

public int level()
Returns the level of the path node.

Returns:
level