public class MathMLXMLStreamCompiler
extends java.lang.Object
ASTNode
the mathML.Constructor | Description |
---|---|
MathMLXMLStreamCompiler() |
|
MathMLXMLStreamCompiler(java.lang.String indent) |
|
MathMLXMLStreamCompiler(javax.xml.stream.XMLStreamWriter writer,
java.lang.String indent) |
Create a new MathMLXMLStreamCompiler.
|
Modifier and Type | Method | Description |
---|---|---|
void |
compile(ASTNode astNode) |
Compiles this
ASTNode and produce an XMLStreamWriter representing this node in mathML. |
void |
compileSemanticAnnotations(ASTNode node) |
|
boolean |
isSBMLNamespaceNeeded(ASTNode astNode) |
|
static void |
main(java.lang.String[] args) |
|
static java.lang.String |
toMathML(ASTNode astNode) |
Writes an
ASTNode 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 MathMLXMLStreamCompiler(java.lang.String indent) throws javax.xml.stream.XMLStreamException
indent
- javax.xml.stream.XMLStreamException
public MathMLXMLStreamCompiler() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public static java.lang.String toMathML(ASTNode astNode)
ASTNode
the mathML.astNode
- the ASTNode
to serialize as mathMLpublic boolean isSBMLNamespaceNeeded(ASTNode astNode)
astNode
- public void compile(ASTNode astNode)
ASTNode
and produce an XMLStreamWriter representing this node in mathML.astNode
- SBMLException
- if any problems occur while checking the ASTNode tree.public void compileSemanticAnnotations(ASTNode node)
node
- public static void main(java.lang.String[] args)
args
-