net.sf.saxon.trace
public class ExpressionPresenter extends Object
Field Summary | |
---|---|
int | depth |
Constructor Summary | |
---|---|
ExpressionPresenter(Configuration config)
Make an ExpressionPresenter that writes indented output to System.err | |
ExpressionPresenter(Configuration config, OutputStream out)
Make an ExpressionPresenter that writes indented output to a specified output stream | |
ExpressionPresenter(Configuration config, Receiver receiver)
Make an ExpressionPresenter for a given Configuration using a user-supplied Receiver
to accept the output |
Method Summary | |
---|---|
void | close()
Close the output |
static Receiver | defaultDestination(Configuration config, OutputStream out)
Make a receiver, using default output properties, with serialized output going
to a specified OutputStream |
void | emitAttribute(String name, String value)
Output an attribute node |
int | endElement()
End an element in the expression tree |
void | endSubsidiaryElement()
End a child element in the output |
Configuration | getConfiguration()
Get the Saxon configuration |
NamePool | getNamePool()
Get the name pool |
TypeHierarchy | getTypeHierarchy()
Get the type hierarchy cache |
static Properties | makeDefaultProperties()
Make a Properties object containing defaulted serialization attributes for the expression tree |
int | startElement(String name)
Start an element |
void | startSubsidiaryElement(String name)
Start a child element in the output |
Parameters: config the Saxon configuration
Parameters: config the Saxon configuration out the output stream
Parameters: config the Configuration receiver the user-supplied Receiver
Parameters: config the Configuration out the OutputStream
Returns: a Receiver that directs serialized output to this output stream
Throws: XPathException
Parameters: name the name of the attribute value the value of the attribute
Returns: the depth of the tree after ending this element. For diagnostics, this can be compared with the value returned by startElement()
Returns: the Saxon configuration
Returns: the name pool
Returns: the type hierarchy cache
Returns: a default set of properties
Parameters: name the name of the element
Returns: the depth of the tree before this element: for diagnostics, this can be compared with the value returned by endElement
Parameters: name the name of the child element