HTMLFormula
public class MathMLXMLStreamCompiler
extends java.lang.Object
ASTNode2
to mathML.Constructor | Description |
---|---|
MathMLXMLStreamCompiler(javax.xml.stream.XMLStreamWriter writer,
java.lang.String indent) |
Create a new MathMLXMLStreamCompiler.
|
Modifier and Type | Method | Description |
---|---|---|
void |
compile(ASTNode2 node) |
Compiles this
ASTNode2 and produce an XMLStreamWriter representing this node in mathML. |
boolean |
isSBMLNamespaceNeeded(ASTNode2 astNode) |
|
static void |
main(java.lang.String[] args) |
|
static java.lang.String |
toMathML(ASTNode2 astNode) |
Writes an
ASTNode2 the mathML. |
public MathMLXMLStreamCompiler(javax.xml.stream.XMLStreamWriter writer, java.lang.String indent)
writer
- the writerindent
- the starting indentationjava.lang.IllegalArgumentException
- if the writer is nullpublic static void main(java.lang.String[] args)
args
- public static java.lang.String toMathML(ASTNode2 astNode)
ASTNode2
the mathML.astNode
- the ASTNode2
to serialize as mathMLpublic void compile(ASTNode2 node)
ASTNode2
and produce an XMLStreamWriter representing this node in mathML.node
- SBMLException
- if any problems occur while checking the ASTNode2 tree.public boolean isSBMLNamespaceNeeded(ASTNode2 astNode)
astNode
-