Skip navigation links
A B C E F G H I L N O P S T U V 

A

ALLOWED_OPERATOR_CHARS - Static variable in class net.objecthunter.exp4j.operator.Operator
The set of allowed operator chars
apply(double...) - Method in class net.objecthunter.exp4j.function.Function
Method that does the actual calculation of the function value given the arguments
apply(double...) - Method in class net.objecthunter.exp4j.operator.Operator
Apply the operation on the given operands

B

build() - Method in class net.objecthunter.exp4j.ExpressionBuilder
Build the Expression instance using the custom operators and functions set.

C

convertToRPN(String, Map<String, Function>, Map<String, Operator>, Set<String>, boolean) - Static method in class net.objecthunter.exp4j.shuntingyard.ShuntingYard
Convert a Set of tokens from infix to reverse polish notation

E

evaluate() - Method in class net.objecthunter.exp4j.Expression
 
evaluateAsync(ExecutorService) - Method in class net.objecthunter.exp4j.Expression
 
Expression - Class in net.objecthunter.exp4j
 
Expression(Expression) - Constructor for class net.objecthunter.exp4j.Expression
Creates a new expression that is a copy of the existing one.
ExpressionBuilder - Class in net.objecthunter.exp4j
Factory class for Expression instances.
ExpressionBuilder(String) - Constructor for class net.objecthunter.exp4j.ExpressionBuilder
Create a new ExpressionBuilder instance and initialize it with a given expression string.

F

function(Function) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Add a Function implementation available for use in the expression
Function - Class in net.objecthunter.exp4j.function
A class representing a Function which can be used in an expression
Function(String, int) - Constructor for class net.objecthunter.exp4j.function.Function
Create a new Function with a given name and number of arguments
Function(String) - Constructor for class net.objecthunter.exp4j.function.Function
Create a new Function with a given name that takes a single argument
functions(Function...) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Add multiple Function implementations available for use in the expression
functions(List<Function>) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Add multiple Function implementations available for use in the expression
Functions - Class in net.objecthunter.exp4j.function
Class representing the builtin functions available for use in expressions
Functions() - Constructor for class net.objecthunter.exp4j.function.Functions
 
FunctionToken - Class in net.objecthunter.exp4j.tokenizer
 
FunctionToken(Function) - Constructor for class net.objecthunter.exp4j.tokenizer.FunctionToken
 

G

getAllowedFunctionCharacters() - Static method in class net.objecthunter.exp4j.function.Function
Deprecated.
since 0.4.5 All unicode letters are allowed to be used in function names since 0.4.3. This API Function can be safely ignored. Checks for function name validity can be done using Character.isLetter() et al.
getBuiltinFunction(String) - Static method in class net.objecthunter.exp4j.function.Functions
Get the builtin function for a given name
getBuiltinOperator(char, int) - Static method in class net.objecthunter.exp4j.operator.Operators
 
getErrors() - Method in class net.objecthunter.exp4j.ValidationResult
Get the list of errors describing the issues while validating the expression
getExpression() - Method in exception net.objecthunter.exp4j.tokenizer.UnknownFunctionOrVariableException
 
getFunction() - Method in class net.objecthunter.exp4j.tokenizer.FunctionToken
 
getMessage() - Method in exception net.objecthunter.exp4j.tokenizer.UnknownFunctionOrVariableException
 
getName() - Method in class net.objecthunter.exp4j.function.Function
Get the name of the Function
getName() - Method in class net.objecthunter.exp4j.tokenizer.VariableToken
Get the name of the setVariable
getNumArguments() - Method in class net.objecthunter.exp4j.function.Function
Get the number of arguments for this function
getNumOperands() - Method in class net.objecthunter.exp4j.operator.Operator
Get the number of operands
getOperator() - Method in class net.objecthunter.exp4j.tokenizer.OperatorToken
Get the operator for that token
getPosition() - Method in exception net.objecthunter.exp4j.tokenizer.UnknownFunctionOrVariableException
 
getPrecedence() - Method in class net.objecthunter.exp4j.operator.Operator
Check the precedence value for the operator
getSymbol() - Method in class net.objecthunter.exp4j.operator.Operator
Get the operator symbol
getToken() - Method in exception net.objecthunter.exp4j.tokenizer.UnknownFunctionOrVariableException
 
getType() - Method in class net.objecthunter.exp4j.tokenizer.Token
 
getValue() - Method in class net.objecthunter.exp4j.tokenizer.NumberToken
Get the value of the number
getVariableNames() - Method in class net.objecthunter.exp4j.Expression
 

H

hasNext() - Method in class net.objecthunter.exp4j.tokenizer.Tokenizer
 

I

implicitMultiplication(boolean) - Method in class net.objecthunter.exp4j.ExpressionBuilder
 
isAllowedOperatorChar(char) - Static method in class net.objecthunter.exp4j.operator.Operator
Check if a character is an allowed operator char
isAlphabetic(int) - Static method in class net.objecthunter.exp4j.tokenizer.Tokenizer
 
isLeftAssociative() - Method in class net.objecthunter.exp4j.operator.Operator
Check if the operator is left associative
isValid() - Method in class net.objecthunter.exp4j.ValidationResult
Check if an expression has been validated successfully
isValidFunctionName(String) - Static method in class net.objecthunter.exp4j.function.Function
 
isVariableOrFunctionCharacter(int) - Static method in class net.objecthunter.exp4j.tokenizer.Tokenizer
 

L

leftAssociative - Variable in class net.objecthunter.exp4j.operator.Operator
 

N

name - Variable in class net.objecthunter.exp4j.function.Function
 
net.objecthunter.exp4j - package net.objecthunter.exp4j
 
net.objecthunter.exp4j.function - package net.objecthunter.exp4j.function
 
net.objecthunter.exp4j.operator - package net.objecthunter.exp4j.operator
 
net.objecthunter.exp4j.shuntingyard - package net.objecthunter.exp4j.shuntingyard
 
net.objecthunter.exp4j.tokenizer - package net.objecthunter.exp4j.tokenizer
 
nextToken() - Method in class net.objecthunter.exp4j.tokenizer.Tokenizer
 
numArguments - Variable in class net.objecthunter.exp4j.function.Function
 
NumberToken - Class in net.objecthunter.exp4j.tokenizer
Represents a number in the expression
NumberToken(double) - Constructor for class net.objecthunter.exp4j.tokenizer.NumberToken
Create a new instance
numOperands - Variable in class net.objecthunter.exp4j.operator.Operator
 

O

operator(Operator) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Add an Operator which should be available for use in the expression
operator(Operator...) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Add multiple Operator implementations which should be available for use in the expression
operator(List<Operator>) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Add multiple Operator implementations which should be available for use in the expression
Operator - Class in net.objecthunter.exp4j.operator
Class representing operators that can be used in an expression
Operator(String, int, boolean, int) - Constructor for class net.objecthunter.exp4j.operator.Operator
Create a new operator for use in expressions
Operators - Class in net.objecthunter.exp4j.operator
 
Operators() - Constructor for class net.objecthunter.exp4j.operator.Operators
 
OperatorToken - Class in net.objecthunter.exp4j.tokenizer
Represents an operator used in expressions
OperatorToken(Operator) - Constructor for class net.objecthunter.exp4j.tokenizer.OperatorToken
Create a new instance

P

precedence - Variable in class net.objecthunter.exp4j.operator.Operator
 
PRECEDENCE_ADDITION - Static variable in class net.objecthunter.exp4j.operator.Operator
The precedence value for the addition operation
PRECEDENCE_DIVISION - Static variable in class net.objecthunter.exp4j.operator.Operator
The precedence value for the division operation
PRECEDENCE_MODULO - Static variable in class net.objecthunter.exp4j.operator.Operator
The precedence value for the modulo operation
PRECEDENCE_MULTIPLICATION - Static variable in class net.objecthunter.exp4j.operator.Operator
The precedence value for the multiplication operation
PRECEDENCE_POWER - Static variable in class net.objecthunter.exp4j.operator.Operator
The precedence value for the power operation
PRECEDENCE_SUBTRACTION - Static variable in class net.objecthunter.exp4j.operator.Operator
The precedence value for the subtraction operation
PRECEDENCE_UNARY_MINUS - Static variable in class net.objecthunter.exp4j.operator.Operator
The precedence value for the unary minus operation
PRECEDENCE_UNARY_PLUS - Static variable in class net.objecthunter.exp4j.operator.Operator
The precedence value for the unary plus operation

S

setVariable(String, double) - Method in class net.objecthunter.exp4j.Expression
 
setVariables(Map<String, Double>) - Method in class net.objecthunter.exp4j.Expression
 
ShuntingYard - Class in net.objecthunter.exp4j.shuntingyard
Shunting yard implementation to convert infix to reverse polish notation
ShuntingYard() - Constructor for class net.objecthunter.exp4j.shuntingyard.ShuntingYard
 
SUCCESS - Static variable in class net.objecthunter.exp4j.ValidationResult
A static class representing a successful validation result
symbol - Variable in class net.objecthunter.exp4j.operator.Operator
 

T

Token - Class in net.objecthunter.exp4j.tokenizer
Abstract class for tokens used by exp4j to tokenize expressions
TOKEN_FUNCTION - Static variable in class net.objecthunter.exp4j.tokenizer.Token
 
TOKEN_NUMBER - Static variable in class net.objecthunter.exp4j.tokenizer.Token
 
TOKEN_OPERATOR - Static variable in class net.objecthunter.exp4j.tokenizer.Token
 
TOKEN_PARENTHESES_CLOSE - Static variable in class net.objecthunter.exp4j.tokenizer.Token
 
TOKEN_PARENTHESES_OPEN - Static variable in class net.objecthunter.exp4j.tokenizer.Token
 
TOKEN_SEPARATOR - Static variable in class net.objecthunter.exp4j.tokenizer.Token
 
TOKEN_VARIABLE - Static variable in class net.objecthunter.exp4j.tokenizer.Token
 
Tokenizer - Class in net.objecthunter.exp4j.tokenizer
 
Tokenizer(String, Map<String, Function>, Map<String, Operator>, Set<String>, boolean) - Constructor for class net.objecthunter.exp4j.tokenizer.Tokenizer
 
Tokenizer(String, Map<String, Function>, Map<String, Operator>, Set<String>) - Constructor for class net.objecthunter.exp4j.tokenizer.Tokenizer
 
type - Variable in class net.objecthunter.exp4j.tokenizer.Token
 

U

UnknownFunctionOrVariableException - Exception in net.objecthunter.exp4j.tokenizer
This exception is being thrown whenever Tokenizer finds unknown function or variable.
UnknownFunctionOrVariableException(String, int, int) - Constructor for exception net.objecthunter.exp4j.tokenizer.UnknownFunctionOrVariableException
 

V

validate(boolean) - Method in class net.objecthunter.exp4j.Expression
 
validate() - Method in class net.objecthunter.exp4j.Expression
 
ValidationResult - Class in net.objecthunter.exp4j
Contains the validation result for a given Expression
ValidationResult(boolean, List<String>) - Constructor for class net.objecthunter.exp4j.ValidationResult
Create a new instance
variable(String) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Declare a variable used in the expression
variables(Set<String>) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Declare variable names used in the expression
variables(String...) - Method in class net.objecthunter.exp4j.ExpressionBuilder
Declare variable names used in the expression
VariableToken - Class in net.objecthunter.exp4j.tokenizer
represents a setVariable used in an expression
VariableToken(String) - Constructor for class net.objecthunter.exp4j.tokenizer.VariableToken
Create a new instance
A B C E F G H I L N O P S T U V 
Skip navigation links

Copyright © 2017. All rights reserved.