public class NumberBuilder extends java.lang.Object implements MathMLFragmentBuilder
Modifier and Type | Class and Description |
---|---|
static class |
NumberBuilder.DoubleBehaviour |
Constructor and Description |
---|
NumberBuilder() |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
build(Node n,
org.w3c.dom.Document d,
MathMLDocumentBuilder db)
Builds a Element for a jep Node.
|
org.w3c.dom.Element |
buildAsComplex(Complex val,
org.w3c.dom.Document d,
MathMLDocumentBuilder db) |
org.w3c.dom.Element |
buildAsDouble(double val,
org.w3c.dom.Document d,
MathMLDocumentBuilder db) |
org.w3c.dom.Element |
buildAsInteger(long val,
org.w3c.dom.Document d,
MathMLDocumentBuilder db) |
NumberBuilder.DoubleBehaviour |
getDoubleBehaviour() |
protected boolean |
isInteger(java.lang.Object val)
Test if a number is an integer.
|
void |
setDoubleBehaviour(NumberBuilder.DoubleBehaviour doubleBehaviour) |
public org.w3c.dom.Element buildAsInteger(long val, org.w3c.dom.Document d, MathMLDocumentBuilder db)
public org.w3c.dom.Element buildAsDouble(double val, org.w3c.dom.Document d, MathMLDocumentBuilder db)
public org.w3c.dom.Element buildAsComplex(Complex val, org.w3c.dom.Document d, MathMLDocumentBuilder db)
public org.w3c.dom.Element build(Node n, org.w3c.dom.Document d, MathMLDocumentBuilder db) throws JepException
MathMLFragmentBuilder
build
in interface MathMLFragmentBuilder
n
- The jep sub expression.d
- The document to create the element in.db
- Used create elements and attributes and child nodes.JepException
protected boolean isInteger(java.lang.Object val)
val
- the value to test, typically a Numberpublic NumberBuilder.DoubleBehaviour getDoubleBehaviour()
public void setDoubleBehaviour(NumberBuilder.DoubleBehaviour doubleBehaviour)
Copyright © 2018 Singular Systems http://www.singularsys.com/jep