Java.parser
Class FunctionParser

java.lang.Object
  extended by Java.parser.FunctionParser

public class FunctionParser
extends java.lang.Object

Class supporting parsing of equations

Since:
1.0

Nested Class Summary
protected static class FunctionParser.Function
           
protected  class FunctionParser.PFNField
           
protected  class FunctionParser.SBMLNode
           
 
Field Summary
protected  int _error
           
protected  FunctionParser.Function[] _functions
          Supported functions Here, order is significant.
static int ERROR_FORMEVAL
           
protected  java.lang.String expr
           
static int index
           
protected  java.util.Vector<FunctionParser.PFNField> PFNExpr
           
protected  java.util.Vector<FunctionParser.PFNField> tokenExpr
           
protected  java.util.Stack<FunctionParser.PFNField> tokenStack
           
 
Constructor Summary
FunctionParser(java.lang.String function)
           
 
Method Summary
protected  void convertToPFN()
           
protected  FunctionParser.Function determineFunctionForToken(java.lang.String token)
           
 void DumpPFN()
           
protected  int getFuncNum(FunctionParser.Function func)
           
protected  FunctionParser.PFNField getNextMorphem()
           
 java.lang.String getSBML()
           
static void main(java.lang.String[] args)
           
protected  void tokenize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_FORMEVAL

public static final int ERROR_FORMEVAL
See Also:
Constant Field Values

expr

protected java.lang.String expr

PFNExpr

protected java.util.Vector<FunctionParser.PFNField> PFNExpr

tokenExpr

protected java.util.Vector<FunctionParser.PFNField> tokenExpr

tokenStack

protected java.util.Stack<FunctionParser.PFNField> tokenStack

_error

protected int _error

_functions

protected FunctionParser.Function[] _functions
Supported functions Here, order is significant.


index

public static int index
Constructor Detail

FunctionParser

public FunctionParser(java.lang.String function)
Method Detail

getNextMorphem

protected FunctionParser.PFNField getNextMorphem()

determineFunctionForToken

protected FunctionParser.Function determineFunctionForToken(java.lang.String token)

tokenize

protected void tokenize()

convertToPFN

protected void convertToPFN()

DumpPFN

public void DumpPFN()

getFuncNum

protected int getFuncNum(FunctionParser.Function func)

getSBML

public java.lang.String getSBML()

main

public static void main(java.lang.String[] args)