|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.trace.ExpressionPresenter
public class ExpressionPresenter
This class handles the display of an abstract expression tree in an XML format with some slight resemblence to XQueryX
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 |
int |
startElement(String name)
Start an element |
void |
startSubsidiaryElement(String name)
Start a child element in the output |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionPresenter(Configuration config)
config
- the Saxon configurationpublic ExpressionPresenter(Configuration config, OutputStream out)
config
- the Saxon configurationout
- the output streampublic ExpressionPresenter(Configuration config, Receiver receiver)
config
- the Configurationreceiver
- the user-supplied ReceiverMethod Detail |
---|
public static Receiver defaultDestination(Configuration config, OutputStream out) throws XPathException
config
- the Configurationout
- the OutputStream
XPathException
public int startElement(String name)
name
- the name of the element
public void emitAttribute(String name, String value)
name
- the name of the attributevalue
- the value of the attributepublic int endElement()
public void startSubsidiaryElement(String name)
name
- the name of the child elementpublic void endSubsidiaryElement()
public void close()
public Configuration getConfiguration()
public NamePool getNamePool()
public TypeHierarchy getTypeHierarchy()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |