|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.sbml.math.MathMLExpression
public class MathMLExpression
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary | |
|---|---|
protected class |
MathMLExpression.Equation
Used as a return value in solve. |
protected class |
MathMLExpression.MathMLHandler
Receives events from SAX and builds a parse tree. |
protected class |
MathMLExpression.NoVarTree
Used as a return value in removeVar from tree. |
| Constructor Summary | |
|---|---|
MathMLExpression(java.lang.String mathML)
|
|
| Method Summary | |
|---|---|
Node |
getExpression()
Converts the MathML parse tree into a traditional math parse tree and returns the result. |
java.lang.String[] |
getFunctionArguments()
Return an array of strings of the function arguments. |
static java.lang.String[] |
getIdentifiers(Node cur)
Gets all identifiers in the parse tree cur and returns them. |
Node |
getMathMLParseTree()
|
boolean |
isLambdaFunction()
|
static void |
printParseTree(Node cur)
|
void |
setLambdaFunction(boolean lambdaFunction)
Tell this MathMLExpression if it represents a lambda function or not. |
Node |
solve(java.lang.String var)
Solves for var and returns a parse tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MathMLExpression(java.lang.String mathML)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException| Method Detail |
|---|
public static java.lang.String[] getIdentifiers(Node cur)
public static void printParseTree(Node cur)
public Node getExpression()
throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getFunctionArguments()
throws java.lang.Exception
java.lang.Exceptionpublic Node getMathMLParseTree()
public boolean isLambdaFunction()
public void setLambdaFunction(boolean lambdaFunction)
public Node solve(java.lang.String var)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||