XmlPrinter

open class XmlPrinter(source)

Outputs an XML file containing the AST meant for inspecting it.

Constructors

Link copied to clipboard
constructor(outputNodeType: Boolean)

Functions

Link copied to clipboard
open fun output(node: Node): String
Generate a xml string for given AST Node.
open fun output(node: Node, name: String, level: Int, builder: StringBuilder)
Output XML data from an AST node to a String Builder.
Link copied to clipboard
open fun outputDocument(node: Node, name: String, writer: Writer)
Output the XML Document representing given AST node to given writer.
open fun outputDocument(node: Node, name: String, xmlWriter: XMLStreamWriter)
Output the XML Document representing an AST node to given XMLStreamWriter.
Link copied to clipboard
open fun outputNode(node: Node, name: String, xmlWriter: XMLStreamWriter)
Output the XML Element representing an AST node to given writer.
Link copied to clipboard
open fun print(node: Node)
Link copied to clipboard
open fun stringWriterOutput(node: Node, name: String): StringWriter
Create a string writer filled with XML document representing an AST node.