public abstract class AbstractOperator extends AbstractConverter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fFirstTag |
protected java.lang.String |
fOperator |
protected int |
fPrecedence |
fFactory
Constructor and Description |
---|
AbstractOperator(int precedence,
java.lang.String oper) |
AbstractOperator(int precedence,
java.lang.String firstTag,
java.lang.String oper) |
Modifier and Type | Method and Description |
---|---|
boolean |
convert(java.lang.StringBuffer buf,
IAST f,
int precedence)
Converts a given function into the corresponding MathML output
|
void |
precedenceClose(java.lang.StringBuffer buf,
int precedence) |
void |
precedenceOpen(java.lang.StringBuffer buf,
int precedence) |
getFactory, setFactory
protected int fPrecedence
protected java.lang.String fFirstTag
protected java.lang.String fOperator
public AbstractOperator(int precedence, java.lang.String firstTag, java.lang.String oper)
public AbstractOperator(int precedence, java.lang.String oper)
public void precedenceOpen(java.lang.StringBuffer buf, int precedence)
public void precedenceClose(java.lang.StringBuffer buf, int precedence)
public boolean convert(java.lang.StringBuffer buf, IAST f, int precedence)
buf
- StringBuffer for MathML outputf
- The math function which should be converted to MathML