org.matheclipse.core.eval
Class MathMLUtilities
- java.lang.Object
-
- org.matheclipse.core.eval.MathMLUtilities
-
- Direct Known Subclasses:
- EvalUtilities
public class MathMLUtilities extends java.lang.ObjectConvert an expression into presentation MathML output See Chracters ordered by Unicode
-
-
Constructor Summary
Constructors Constructor and Description MathMLUtilities(EvalEngine evalEngine, boolean mathMTagPrefix, boolean mathMLHeader)Constructor for an object which converts an expression into presentation MathML output
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidstartRequest()Assign the associated EvalEngine to the current thread.voidstopRequest()Stop the current evaluation thread.voidtoJava(java.lang.String inputExpression, java.io.Writer out, boolean strictJava)voidtoMathML(IExpr objectExpression, java.io.Writer out)Converts the objectExpression into a MathML expression and writes the result to the givenWritervoidtoMathML(java.lang.String inputExpression, java.io.Writer out)Converts the inputExpression string into a MathML expression and writes the result to the givenWriter
-
-
-
Constructor Detail
-
MathMLUtilities
public MathMLUtilities(EvalEngine evalEngine, boolean mathMTagPrefix, boolean mathMLHeader)
Constructor for an object which converts an expression into presentation MathML output- Parameters:
evalEngine-mathMTagPrefix- if set totrueuse "m:" as tag prefix for the MathML output.mathMLHeader- print MathML header in output
-
-
Method Detail
-
toMathML
public void toMathML(java.lang.String inputExpression, java.io.Writer out)Converts the inputExpression string into a MathML expression and writes the result to the givenWriter- Parameters:
inputExpression-out-
-
toMathML
public void toMathML(IExpr objectExpression, java.io.Writer out)
Converts the objectExpression into a MathML expression and writes the result to the givenWriter- Parameters:
objectExpression-out-
-
toJava
public void toJava(java.lang.String inputExpression, java.io.Writer out, boolean strictJava)
-
startRequest
public void startRequest()
Assign the associated EvalEngine to the current thread. Every subsequent action evaluation in this thread affects the EvalEngine in this class.
-
stopRequest
public void stopRequest()
Stop the current evaluation thread.
-
-
DMelt 3.0 © DataMelt by jWork.ORG