public class OperatorBuilder extends ApplyConstructor implements MathMLFragmentBuilder
<apply><plus/><ci>x<ci/><cn>1<cn/><apply/>Other operators have special behaviour with their own MathMLFragmentBuilder
| Constructor and Description |
|---|
OperatorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Element |
build(Node node,
org.w3c.dom.Document doc,
MathMLDocumentBuilder db)
Builds a Element for a jep Node.
|
java.util.Map<Operator,java.lang.String> |
getOperators()
The map of standard operators
|
java.util.Map<Operator,MathMLFragmentBuilder> |
getSpecialOps()
The map of special operators
|
MathMLFragmentBuilder |
put(Operator key,
MathMLFragmentBuilder value)
Adds a special operator.
|
java.lang.String |
put(Operator key,
java.lang.String value)
Adds a standard operator.
|
public org.w3c.dom.Element build(Node node, org.w3c.dom.Document doc, MathMLDocumentBuilder db) throws JepException
MathMLFragmentBuilderbuild in interface MathMLFragmentBuildernode - The jep sub expression.doc - The document to create the element in.db - Used create elements and attributes and child nodes.JepExceptionpublic java.lang.String put(Operator key, java.lang.String value)
key - the operatorvalue - the name of the mathml element to use for this operator.public MathMLFragmentBuilder put(Operator key, MathMLFragmentBuilder value)
key - the operatorvalue - a builder to create elements for this operator.public java.util.Map<Operator,java.lang.String> getOperators()
public java.util.Map<Operator,MathMLFragmentBuilder> getSpecialOps()
Copyright © 2018 Singular Systems http://www.singularsys.com/jep