-
ARGUMENT
String ARGUMENT
-
argumentsList
List<Argument> argumentsList
List of arguments
- See Also:
Argument,
RecursiveArgument
-
attemptToFixExpStrEnabled
boolean attemptToFixExpStrEnabled
Internal indicator informing the parser
whether to try to fix the expression String.
For example, situations such as:
"++" change to "+",
"+-" changed tro "-"
"-+" changed tro "-"
"--" changed tro "+"
-
computingTime
double computingTime
Keeps computing time
-
constantsList
List<Constant> constantsList
List of user defined constants
- See Also:
Constant
-
description
String description
Expression description
-
disableRounding
boolean disableRounding
Internal parameter for calculus expressions
to avoid decrease in accuracy.
-
ERROR
String ERROR
-
errorMessage
String errorMessage
Message after checking the syntax
-
expressionString
String expressionString
Expression string (for example: "sin(x)+cos(y)")
-
expressionStringCleaned
String expressionStringCleaned
Expression string after attempt to clean
-
expressionWasModified
boolean expressionWasModified
if true then new tokenizing is required
(the initialTokens list needs to be updated)
-
FUNCTION
String FUNCTION
-
functionsList
List<Function> functionsList
List of user defined functions
- See Also:
Function
-
impliedMultiplicationError
boolean impliedMultiplicationError
Fires an error when impliedMultiplicationMode is on
and there is a missing multiplication operator
-
impliedMultiplicationMode
boolean impliedMultiplicationMode
Implied multiplication mode
-
initialTokens
List<Token> initialTokens
List of expression tokens (words).
Token class defines all needed
attributes for recognizing the structure of
arithmetic expression. This is the key result when
initial parsing is finished (tokenizeExpressionString() - method).
Token keeps information about:
- token type (for example: function, operator, argument, number, etc...)
- token identifier within given type (sin, cos, operaotr, etc...)
- token value (if token is a number)
- token level - key information regarding sequence (order) of further parsing
-
internalClone
boolean internalClone
Internal indicator for calculation process
Expression.Calculate() method
It shows whether to build again tokens list
if clone - build again
if not clone - build only at the beginning
Indicator helps to solve the problem with
above definitions
Function f = new Function("f(x) = 2*g(x)");
Function g = new Function("g(x) = 2*f(x)");
f.addDefinitions(g);
g.addDefinitions(f);
-
keyWordsList
List<KeyWord> keyWordsList
List of key words known by the parser
-
neverParseForImpliedMultiplication
Set<String> neverParseForImpliedMultiplication
List of string tokens that should not be considered
while seeking for optional implied multiplication.
Example: sum( x2y, 1, 10, 2*x2y)
Here x2y should always stay as x2y
-
optionsChangesetNumber
int optionsChangesetNumber
mXparser options changeset
used in checkSyntax() method
-
parserKeyWordsOnly
boolean parserKeyWordsOnly
Internal indicator for tokenization process
if true, then keywords such as constants
functions etc... will not be recognized
during tokenization
-
recursionCallPending
boolean recursionCallPending
Log used internally to mark started recursion
call on the current object, necessary to
avoid infinite loops while recursive syntax
checking (i.e. f to g and g to f)
or marking modified flags on the expressions
related to this expression.
- See Also:
Expression.setExpressionModifiedFlag(),
Expression.checkSyntax()
-
recursionCallsCounter
int recursionCallsCounter
Internal counter to avoid infinite loops while calculating
expression defined in the way shown by below examples
Argument x = new Argument("x = 2*y");
Argument y = new Argument("y = 2*x");
x.addDefinitions(y);
y.addDefinitions(x);
Function f = new Function("f(x) = 2*g(x)");
Function g = new Function("g(x) = 2*f(x)");
f.addDefinitions(g);
g.addDefinitions(f);
-
recursiveMode
boolean recursiveMode
If recursive mode is on the recursive calls are permitted.
It means there will be no null pointer exceptions
due to expression, and functions cloning.
-
relatedExpressionsList
List<Expression> relatedExpressionsList
List of related expressions, for example when
user defined function is used in the expression
or dependent argument was defined. Modification of
function expression calls the method expression modified
flag method to all related expressions.
Related expression usually are used for
- dependent arguments
- recursive arguments
- user functions
-
syntaxStatus
boolean syntaxStatus
Status of the expression syntax
Please referet to the:
- NO_SYNTAX_ERRORS
- SYNTAX_ERROR_OR_STATUS_UNKNOWN
-
tokensList
List<Token> tokensList
the initialTokens list keeps unchanged information about
found tokens.
While parsing the tokensList is used. The tokensList is the same
as initialTokens list at the beginning of the calculation process.
Each math operation changes tokens list - it means that
tokens are parameters when performing math operation
and the result is also presented as token (usually as a number token)
At the end of the calculation the tokensList should contain only one
element - the result of all calculations.
-
UDFExpression
boolean UDFExpression
Indicator whether expression was
automatically built for user defined
functions purpose
- See Also:
Function
-
UDFVariadicParamsAtRunTime
List<Double> UDFVariadicParamsAtRunTime
List of parameters provided by the user at run-time
- See Also:
Function
-
unicodeKeyWordsEnabled
boolean unicodeKeyWordsEnabled
Internal indicator informing hte parser
that unicode know keywords are enabled
and will be recognized by the parser
as built-in functions or operators
-
UNITCONST
String UNITCONST
-
verboseMode
boolean verboseMode
Verbose mode prints processing info
calls System.out.print* methods