A B C E F G H I L M N O P S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractFunction - Class in com.udojava.evalex
-
Abstract implementation of a direct function.
This abstract implementation does implement lazyEval so that it returns the result of eval. - AbstractFunction(String, int) - Constructor for class com.udojava.evalex.AbstractFunction
-
Creates a new function with given name and parameter count.
- AbstractFunction(String, int, boolean) - Constructor for class com.udojava.evalex.AbstractFunction
-
Creates a new function with given name and parameter count.
- AbstractLazyFunction - Class in com.udojava.evalex
-
Abstract implementation of a lazy function which implements all necessary methods with the exception of the main logic.
- AbstractLazyFunction(String, int) - Constructor for class com.udojava.evalex.AbstractLazyFunction
-
Creates a new function with given name and parameter count.
- AbstractLazyFunction(String, int, boolean) - Constructor for class com.udojava.evalex.AbstractLazyFunction
-
Creates a new function with given name and parameter count.
- AbstractLazyOperator - Class in com.udojava.evalex
-
Abstract implementation of an operator.
- AbstractLazyOperator(String, int, boolean) - Constructor for class com.udojava.evalex.AbstractLazyOperator
-
Creates a new operator.
- AbstractLazyOperator(String, int, boolean, boolean) - Constructor for class com.udojava.evalex.AbstractLazyOperator
-
Creates a new boolean operator.
- AbstractLazyOperator(String, int, boolean, boolean, boolean) - Constructor for class com.udojava.evalex.AbstractLazyOperator
-
Creates a new unary operator.
- AbstractOperator - Class in com.udojava.evalex
-
Abstract implementation of an operator.
- AbstractOperator(String, int, boolean) - Constructor for class com.udojava.evalex.AbstractOperator
-
Creates a new operator.
- AbstractOperator(String, int, boolean, boolean) - Constructor for class com.udojava.evalex.AbstractOperator
-
Creates a new boolean operator.
- AbstractOperator(String, int, boolean, boolean, boolean) - Constructor for class com.udojava.evalex.AbstractOperator
-
Creates a new unary operator.
- AbstractUnaryOperator - Class in com.udojava.evalex
-
Abstract implementation of an unary operator.
This abstract implementation implements eval so that it forwards its first parameter to evalUnary. - AbstractUnaryOperator(String, int, boolean) - Constructor for class com.udojava.evalex.AbstractUnaryOperator
-
Creates a new operator.
- addFunction(Function) - Method in class com.udojava.evalex.Expression
-
Adds a function to the list of supported functions
- addLazyFunction(LazyFunction) - Method in class com.udojava.evalex.Expression
-
Adds a lazy function function to the list of supported functions
- addOperator(OPERATOR) - Method in class com.udojava.evalex.Expression
-
Adds an operator to the list of supported operators.
- and(String, Expression.LazyNumber) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
- and(String, String) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
- and(String, BigDecimal) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
- append(char) - Method in class com.udojava.evalex.Expression.Token
- append(String) - Method in class com.udojava.evalex.Expression.Token
- assertNotNull(BigDecimal) - Static method in class com.udojava.evalex.Expression
-
Assert the single expected operand is not null.
- assertNotNull(BigDecimal, BigDecimal) - Static method in class com.udojava.evalex.Expression
-
Assert the two expected operands are not null.
B
- booleanFunction - Variable in class com.udojava.evalex.AbstractLazyFunction
-
Whether this function is a boolean function.
- booleanOperator - Variable in class com.udojava.evalex.AbstractLazyOperator
-
Operator is boolean.
- build() - Method in class com.udojava.evalex.ExpressionSettings.Builder
- builder() - Static method in class com.udojava.evalex.ExpressionSettings
- Builder() - Constructor for class com.udojava.evalex.ExpressionSettings.Builder
C
- charAt(int) - Method in class com.udojava.evalex.Expression.Token
- com.udojava.evalex - package com.udojava.evalex
- createLazyNumber(BigDecimal) - Method in class com.udojava.evalex.Expression
-
Construct a LazyNumber from a BigDecimal
E
- e - Static variable in class com.udojava.evalex.Expression
-
Definition of e: "Euler's number" as a constant, can be used in expressions as variable.
- equals(Object) - Method in class com.udojava.evalex.Expression
- eval() - Method in class com.udojava.evalex.Expression
-
Evaluates the expression.
- eval() - Method in interface com.udojava.evalex.Expression.LazyNumber
- eval() - Method in class com.udojava.evalex.LazyIfNumber
- eval(boolean) - Method in class com.udojava.evalex.Expression
-
Evaluates the expression.
- eval(Expression.LazyNumber, Expression.LazyNumber) - Method in class com.udojava.evalex.AbstractOperator
-
Implementation of this operator supporting either 1 or 2 operands.
- eval(Expression.LazyNumber, Expression.LazyNumber) - Method in class com.udojava.evalex.AbstractUnaryOperator
- eval(Expression.LazyNumber, Expression.LazyNumber) - Method in interface com.udojava.evalex.LazyOperator
-
Implementation for this operator.
- eval(BigDecimal, BigDecimal) - Method in class com.udojava.evalex.AbstractUnaryOperator
-
Implementation of this operator calling unary operator evaluation method..
- eval(BigDecimal, BigDecimal) - Method in interface com.udojava.evalex.Operator
-
Implementation for this operator.
- eval(List<BigDecimal>) - Method in interface com.udojava.evalex.Function
-
Implementation for this function.
- evalUnary(BigDecimal) - Method in class com.udojava.evalex.AbstractUnaryOperator
-
Implementation of this prefix unary operator.
- Expression - Class in com.udojava.evalex
-
EvalEx - Java Expression Evaluator
- Expression(String) - Constructor for class com.udojava.evalex.Expression
-
Creates a new expression instance from an expression string with a given default match context of
MathContext.DECIMAL32. - Expression(String, ExpressionSettings) - Constructor for class com.udojava.evalex.Expression
-
Creates a new expression instance from an expression string with given settings.
- Expression(String, MathContext) - Constructor for class com.udojava.evalex.Expression
-
Creates a new expression instance from an expression string with a given default match context.
- Expression.ExpressionException - Exception in com.udojava.evalex
-
The expression evaluators exception class.
- Expression.Function - Class in com.udojava.evalex
-
Abstract definition of a supported expression function.
- Expression.LazyFunction - Class in com.udojava.evalex
-
LazyFunction class
- Expression.LazyNumber - Interface in com.udojava.evalex
-
LazyNumber interface created for lazily evaluated functions
- Expression.Operator - Class in com.udojava.evalex
-
Abstract definition of a supported operator.
- Expression.Token - Class in com.udojava.evalex
-
Token class
- Expression.UnaryOperator - Class in com.udojava.evalex
-
Abstract definition of a prefix unary operator with right-side operand.
- ExpressionException(String) - Constructor for exception com.udojava.evalex.Expression.ExpressionException
- ExpressionException(String, int) - Constructor for exception com.udojava.evalex.Expression.ExpressionException
- ExpressionSettings - Class in com.udojava.evalex
-
Expression settings can be used to set certain defaults, when creating a new expression.
- ExpressionSettings(MathContext, int) - Constructor for class com.udojava.evalex.ExpressionSettings
-
Create a new settings object.
- ExpressionSettings.Builder - Class in com.udojava.evalex
-
A builder to create a read-only
ExpressionSettingsinstance.
F
- Function - Interface in com.udojava.evalex
-
Base interface which is required for all directly evaluated functions.
- Function(String, int) - Constructor for class com.udojava.evalex.Expression.Function
- Function(String, int, boolean) - Constructor for class com.udojava.evalex.Expression.Function
- functions - Variable in class com.udojava.evalex.Expression
-
All defined functions with name and implementation.
G
- getDeclaredFunctions() - Method in class com.udojava.evalex.Expression
-
Exposing declared functions.
- getDeclaredOperators() - Method in class com.udojava.evalex.Expression
-
Exposing declared operators in the expression.
- getDeclaredVariables() - Method in class com.udojava.evalex.Expression
-
Exposing declared variables in the expression.
- getExpression() - Method in class com.udojava.evalex.Expression
- getExpressionTokenizer() - Method in class com.udojava.evalex.Expression
-
Get an iterator for this expression, allows iterating over an expression token by token.
- getMathContext() - Method in class com.udojava.evalex.ExpressionSettings
-
Get the current math context.
- getName() - Method in class com.udojava.evalex.AbstractLazyFunction
- getName() - Method in interface com.udojava.evalex.LazyFunction
-
Gets the name of this function.
The name is use to invoke this function in the expression. - getNumParams() - Method in class com.udojava.evalex.AbstractLazyFunction
- getNumParams() - Method in interface com.udojava.evalex.LazyFunction
-
Gets the number of parameters this function accepts.
A value of-1denotes that this function accepts a variable number of parameters. - getOper() - Method in class com.udojava.evalex.AbstractLazyOperator
- getOper() - Method in interface com.udojava.evalex.LazyOperator
-
Gets the String that is used to denote the operator in the expression.
- getOriginalExpression() - Method in class com.udojava.evalex.Expression
-
The original expression used to construct this expression, without variables substituted.
- getPowerOperatorPrecedence() - Method in class com.udojava.evalex.ExpressionSettings
-
Get the current power precedence.
- getPrecedence() - Method in class com.udojava.evalex.AbstractLazyOperator
- getPrecedence() - Method in interface com.udojava.evalex.LazyOperator
-
Gets the precedence value of this operator.
- getString() - Method in interface com.udojava.evalex.Expression.LazyNumber
- getString() - Method in class com.udojava.evalex.LazyIfNumber
- getUsedVariables() - Method in class com.udojava.evalex.Expression
-
Returns a list of the variables in the expression.
H
- hashCode() - Method in class com.udojava.evalex.Expression
I
- infixNotation() - Method in class com.udojava.evalex.Expression
- isBoolean() - Method in class com.udojava.evalex.Expression
-
Checks whether the expression is a boolean expression.
- isBooleanFunction() - Method in class com.udojava.evalex.AbstractLazyFunction
- isBooleanFunction() - Method in interface com.udojava.evalex.LazyFunction
-
Gets whether this function evaluates to a boolean expression.
- isBooleanOperator() - Method in class com.udojava.evalex.AbstractLazyOperator
- isBooleanOperator() - Method in interface com.udojava.evalex.LazyOperator
-
Gets whether this operator evaluates to a boolean expression.
- isLeftAssoc() - Method in class com.udojava.evalex.AbstractLazyOperator
- isLeftAssoc() - Method in interface com.udojava.evalex.LazyOperator
-
Gets whether this operator is left associative (
true) or if this operator is right associative (false). - isNumber(String) - Method in class com.udojava.evalex.Expression
-
Is the string a number?
- isUnaryOperator() - Method in class com.udojava.evalex.AbstractLazyOperator
- isUnaryOperator() - Method in interface com.udojava.evalex.LazyOperator
-
Gets whether this operator is unary or not.
L
- lazyEval(List<Expression.LazyNumber>) - Method in class com.udojava.evalex.AbstractFunction
- lazyEval(List<Expression.LazyNumber>) - Method in interface com.udojava.evalex.LazyFunction
-
Lazily evaluate this function.
- LazyFunction - Interface in com.udojava.evalex
-
Base interface which is required for lazily evaluated functions.
- LazyFunction(String, int) - Constructor for class com.udojava.evalex.Expression.LazyFunction
-
Creates a new function with given name and parameter count.
- LazyFunction(String, int, boolean) - Constructor for class com.udojava.evalex.Expression.LazyFunction
-
Creates a new function with given name and parameter count.
- LazyIfNumber - Class in com.udojava.evalex
-
Lazy Number for IF function created for lazily evaluated IF condition
- LazyIfNumber(List<Expression.LazyNumber>) - Constructor for class com.udojava.evalex.LazyIfNumber
- LazyOperator - Interface in com.udojava.evalex
-
Base interface which is required for all operators.
- leftAssoc - Variable in class com.udojava.evalex.AbstractLazyOperator
-
Operator is left associative.
- length() - Method in class com.udojava.evalex.Expression.Token
M
- mathContext(MathContext) - Method in class com.udojava.evalex.ExpressionSettings.Builder
- MISSING_PARAMETERS_FOR_OPERATOR - Static variable in class com.udojava.evalex.Expression
-
Exception message for missing operators.
N
- name - Variable in class com.udojava.evalex.AbstractLazyFunction
-
Name of this function.
- numParams - Variable in class com.udojava.evalex.AbstractLazyFunction
-
Number of parameters expected for this function.
- numParamsVaries() - Method in class com.udojava.evalex.AbstractLazyFunction
- numParamsVaries() - Method in interface com.udojava.evalex.LazyFunction
-
Gets whether the number of accepted parameters varies.
That means that the function does accept an undefined amount of parameters.
O
- oper - Variable in class com.udojava.evalex.AbstractLazyOperator
-
This operators name (pattern).
- Operator - Interface in com.udojava.evalex
-
Base interface which is required for all operators.
- Operator(String, int, boolean) - Constructor for class com.udojava.evalex.Expression.Operator
-
Creates a new operator.
- Operator(String, int, boolean, boolean) - Constructor for class com.udojava.evalex.Expression.Operator
-
Creates a new boolean operator.
- Operator(String, int, boolean, boolean, boolean) - Constructor for class com.udojava.evalex.Expression.Operator
-
Creates a new unary operator.
- OPERATOR_PRECEDENCE_ADDITIVE - Static variable in class com.udojava.evalex.Expression
-
Additive operators precedence: + and -
- OPERATOR_PRECEDENCE_AND - Static variable in class com.udojava.evalex.Expression
-
And operator precedence: &&
- OPERATOR_PRECEDENCE_COMPARISON - Static variable in class com.udojava.evalex.Expression
-
Comparative operators precedence: <,>,<=,>=
- OPERATOR_PRECEDENCE_EQUALITY - Static variable in class com.udojava.evalex.Expression
-
Equality operators precedence: =, ==, !=.
- OPERATOR_PRECEDENCE_MULTIPLICATIVE - Static variable in class com.udojava.evalex.Expression
-
Multiplicative operators precedence: *,/,%
- OPERATOR_PRECEDENCE_OR - Static variable in class com.udojava.evalex.Expression
-
Or operator precedence: ||
- OPERATOR_PRECEDENCE_POWER - Static variable in class com.udojava.evalex.Expression
-
Power operator precedence: ^
- OPERATOR_PRECEDENCE_POWER_HIGHER - Static variable in class com.udojava.evalex.Expression
-
An optional higher power operator precedence.
- OPERATOR_PRECEDENCE_UNARY - Static variable in class com.udojava.evalex.Expression
-
Unary operators precedence: + and - as prefix
- operators - Variable in class com.udojava.evalex.Expression
-
All defined operators with name and implementation.
P
- PI - Static variable in class com.udojava.evalex.Expression
-
Definition of PI as a constant, can be used in expressions as variable.
- pos - Variable in class com.udojava.evalex.Expression.Token
- powerOperatorPrecedence(int) - Method in class com.udojava.evalex.ExpressionSettings.Builder
- powerOperatorPrecedenceHigher() - Method in class com.udojava.evalex.ExpressionSettings.Builder
- precedence - Variable in class com.udojava.evalex.AbstractLazyOperator
-
Operators precedence.
S
- setFirstVariableCharacters(String) - Method in class com.udojava.evalex.Expression
-
Sets the characters other than letters and digits that are valid as the first character of a variable.
- setPrecision(int) - Method in class com.udojava.evalex.Expression
-
Sets the precision for expression evaluation.
- setRoundingMode(RoundingMode) - Method in class com.udojava.evalex.Expression
-
Sets the rounding mode for expression evaluation.
- setVariable(String, Expression.LazyNumber) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
- setVariable(String, String) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
- setVariable(String, BigDecimal) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
- setVariableCharacters(String) - Method in class com.udojava.evalex.Expression
-
Sets the characters other than letters and digits that are valid as the second and subsequent characters of a variable.
- surface - Variable in class com.udojava.evalex.Expression.Token
T
- Token() - Constructor for class com.udojava.evalex.Expression.Token
- toRPN() - Method in class com.udojava.evalex.Expression
-
Get a string representation of the RPN (Reverse Polish Notation) for this expression.
- toString() - Method in class com.udojava.evalex.Expression.Token
- toString() - Method in class com.udojava.evalex.Expression
- type - Variable in class com.udojava.evalex.Expression.Token
U
- unaryOperator - Variable in class com.udojava.evalex.AbstractLazyOperator
-
Operator is unary, i.e.
- UnaryOperator(String, int, boolean) - Constructor for class com.udojava.evalex.Expression.UnaryOperator
V
- variables - Variable in class com.udojava.evalex.Expression
-
All defined variables with name and value.
W
- with(String, Expression.LazyNumber) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
- with(String, String) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
- with(String, BigDecimal) - Method in class com.udojava.evalex.Expression
-
Sets a variable value.
All Classes All Packages