public class Statistics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Statistics |
ASSERTION_TREE_STATISTICS |
static Statistics |
FN_PARSE_STATISTICS |
static Statistics |
RESULT_TREE_STATISTICS |
static Statistics |
SOURCE_DOCUMENT_STATISTICS |
static Statistics |
TEMPORARY_TREE_STATISTICS |
Constructor and Description |
---|
Statistics() |
Statistics(int nodes,
int atts,
int namespaces,
int chars) |
Modifier and Type | Method and Description |
---|---|
double |
getAverageAttributes() |
double |
getAverageCharacters() |
double |
getAverageNamespaces() |
double |
getAverageNodes() |
java.lang.String |
toString() |
void |
updateStatistics(int numberOfNodes,
int numberOfAttributes,
int numberOfNamespaces,
int chars)
Update the statistics held in static data.
|
public static final Statistics SOURCE_DOCUMENT_STATISTICS
public static final Statistics TEMPORARY_TREE_STATISTICS
public static final Statistics RESULT_TREE_STATISTICS
public static final Statistics ASSERTION_TREE_STATISTICS
public static final Statistics FN_PARSE_STATISTICS
public Statistics()
public Statistics(int nodes, int atts, int namespaces, int chars)
public double getAverageNodes()
public double getAverageAttributes()
public double getAverageNamespaces()
public double getAverageCharacters()
public void updateStatistics(int numberOfNodes, int numberOfAttributes, int numberOfNamespaces, int chars)
numberOfNodes
- the number of (non-attribute, non-namespace) nodesnumberOfAttributes
- the number of attribute nodesnumberOfNamespaces
- the number of namespace bindings (deltas on namespace nodes)chars
- the number of characters in text nodespublic java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.