public class MathMLUtilities
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected EvalEngine |
fEvalEngine |
protected MathMLFormFactory |
fMathMLFactory |
| Constructor and Description |
|---|
MathMLUtilities(EvalEngine evalEngine,
boolean mathMTagPrefix,
boolean mathMLHeader)
Constructor for an object which converts an expression into presentation
MathML output
|
| Modifier and Type | Method and Description |
|---|---|
EvalEngine |
getEvalEngine()
Get the current evaluation engine.
|
void |
startRequest()
Assign the associated EvalEngine to the current thread.
|
void |
stopRequest()
Stop the current evaluation thread.
|
void |
toJava(java.lang.String inputExpression,
java.io.Writer out,
boolean strictJava) |
void |
toMathML(IExpr objectExpression,
java.io.Writer out)
Converts the objectExpression into a MathML expression and writes the
result to the given
Writer |
void |
toMathML(java.lang.String inputExpression,
java.io.Writer out)
Converts the inputExpression string into a MathML expression and writes
the result to the given
Writer |
protected final EvalEngine fEvalEngine
protected MathMLFormFactory fMathMLFactory
public MathMLUtilities(EvalEngine evalEngine, boolean mathMTagPrefix, boolean mathMLHeader)
evalEngine - mathMTagPrefix - if set to true use "m:" as tag prefix
for the MathML output.mathMLHeader - print MathML header in outputpublic EvalEngine getEvalEngine()
public void toMathML(java.lang.String inputExpression,
java.io.Writer out)
WriterinputExpression - out - public void toMathML(IExpr objectExpression, java.io.Writer out)
WriterobjectExpression - out - public void toJava(java.lang.String inputExpression,
java.io.Writer out,
boolean strictJava)
public void startRequest()
public void stopRequest()