public class MathParser extends Object implements MathParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt |
boolean |
lookingAhead |
Token |
token |
MathParserTokenManager |
token_source |
ABS, ARCCOS, ARCCOSEC, ARCCOSECH, ARCCOSH, ARCCOT, ARCCOTH, ARCSEC, ARCSECH, ARCSIN, ARCSINH, ARCTAN, ARCTANH, ATAN2, BRACE_CLOSE, BRACE_OPEN, CEIL, COS, COSEC, COSECH, COSH, COT, COTH, DEFAULT, DIVIDE, END_STATEMENT, EOF, EOL, EQUALS, EQUALTO, EXP, FLOOR, FRAC, GREATER, GREATEREQ, LESSER, LESSEREQ, LINE_COMMENT, LN, LOG10, LOG2, MINUS, MODULO, MULTIPLY, NONNUMERIC, NOTEQUALS, NUMBER, PLUS, POWER, SEC, SECH, SEMICOLON, SIGN, SIN, SINH, SQRT, TAN, TANH, tokenImage, VARNAME
Constructor and Description |
---|
MathParser() |
MathParser(InputStream stream) |
MathParser(MathParserTokenManager tm) |
MathParser(Reader stream) |
Modifier and Type | Method and Description |
---|---|
void |
disable_tracing() |
void |
enable_tracing() |
double |
Expression() |
ParseException |
generateParseException() |
double |
GetNextTerm() |
Token |
getNextToken() |
Token |
getToken(int index) |
double |
getVariable(String varName) |
double |
Go() |
double |
parseExpression(String s) |
double |
ParseLevel1() |
double |
ParseLevel2() |
double |
ParseLevel3() |
void |
ReInit(InputStream stream) |
void |
ReInit(MathParserTokenManager tm) |
void |
ReInit(Reader stream) |
void |
resetVariables() |
void |
setVariable(String varName,
double varValue) |
public MathParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public MathParser()
public MathParser(InputStream stream)
public MathParser(Reader stream)
public MathParser(MathParserTokenManager tm)
public void resetVariables()
public void setVariable(String varName, double varValue)
public double getVariable(String varName)
public double parseExpression(String s) throws ParseException
ParseException
public final double GetNextTerm() throws ParseException, NumberFormatException
ParseException
NumberFormatException
public final double Go() throws ParseException
ParseException
public final double Expression() throws ParseException, NumberFormatException
ParseException
NumberFormatException
public final double ParseLevel1() throws ParseException, NumberFormatException
ParseException
NumberFormatException
public final double ParseLevel2() throws ParseException, NumberFormatException
ParseException
NumberFormatException
public final double ParseLevel3() throws ParseException, NumberFormatException
ParseException
NumberFormatException
public void ReInit(InputStream stream)
public void ReInit(Reader stream)
public void ReInit(MathParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics