| 程序包 | 说明 |
|---|---|
| net.objecthunter.exp4j | |
| net.objecthunter.exp4j.operator | |
| net.objecthunter.exp4j.shuntingyard | |
| net.objecthunter.exp4j.tokenizer |
| 限定符和类型 | 方法和说明 |
|---|---|
ExpressionBuilder |
ExpressionBuilder.operator(Operator... operators)
Add multiple
Operator implementations which should be available for use in the expression |
ExpressionBuilder |
ExpressionBuilder.operator(Operator operator)
Add an
Operator which should be available for use in the expression |
| 限定符和类型 | 方法和说明 |
|---|---|
ExpressionBuilder |
ExpressionBuilder.operator(List<Operator> operators)
Add multiple
Operator implementations which should be available for use in the expression |
| 限定符和类型 | 方法和说明 |
|---|---|
static Operator |
Operators.getBuiltinOperator(char symbol,
int numArguments) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Token[] |
ShuntingYard.convertToRPN(String expression,
Map<String,Function> userFunctions,
Map<String,Operator> userOperators,
Set<String> variableNames,
boolean implicitMultiplication)
Convert a Set of tokens from infix to reverse polish notation
|
| 限定符和类型 | 方法和说明 |
|---|---|
Operator |
OperatorToken.getOperator()
Get the operator for that token
|
| 构造器和说明 |
|---|
OperatorToken(Operator op)
Create a new instance
|
| 构造器和说明 |
|---|
Tokenizer(String expression,
Map<String,Function> userFunctions,
Map<String,Operator> userOperators,
Set<String> variableNames) |
Tokenizer(String expression,
Map<String,Function> userFunctions,
Map<String,Operator> userOperators,
Set<String> variableNames,
boolean implicitMultiplication) |
Copyright © 2025. All rights reserved.