A C D E F G H L M N O P R S T V 
All Classes All Packages

A

ABS - org.example.expression.function.MathFunction.Type
 
apply(double...) - Method in interface org.example.expression.function.Function
Вычисляет значение функции.
apply(double...) - Method in class org.example.expression.function.LogFunction
 
apply(double...) - Method in class org.example.expression.function.MathFunction
 
apply(double...) - Method in class org.example.expression.function.TrigonometricalFunction
 

C

calc() - Method in class org.example.expression.Expression
Вычисляет значение математического выражения.
clearCache() - Method in class org.example.expression.function.VariableProvider
Очищает кэш сохранённых переменных.
COS - org.example.expression.function.TrigonometricalFunction.Type
 

D

DIVIDE - org.example.expression.tokenizer.TokenType
Оператор деления

E

equals(Object) - Method in class org.example.expression.tokenizer.Token
 
evaluate(List<Token>) - Method in interface org.example.expression.evaluator.Evaluator
Вычисляет значение выражения.
evaluate(List<Token>) - Method in class org.example.expression.evaluator.StackEvaluator
 
Evaluator - Interface in org.example.expression.evaluator
Вычислитель выражений в обратной польской нотации (RPN).
Expression - Class in org.example.expression
Публичный API для вычисления математических выражений.
Expression(String) - Constructor for class org.example.expression.Expression
Создаёт выражение для вычисления с настройками по умолчанию.
Expression(String, StackEvaluator) - Constructor for class org.example.expression.Expression
Создаёт выражение с кастомным вычислителем.
ExpressionException - Exception in org.example.expression
Исключение, выбрасываемое при ошибках вычисления математических выражений.
ExpressionException(String) - Constructor for exception org.example.expression.ExpressionException
Создаёт исключение с указанным сообщением об ошибке.

F

fromName(String) - Static method in class org.example.expression.function.LogFunction
Фабричный метод для создания по имени.
fromName(String) - Static method in class org.example.expression.function.MathFunction
Фабричный метод для создания по имени.
fromName(String) - Static method in class org.example.expression.function.TrigonometricalFunction
Фабричный метод для создания по имени.
Function - Interface in org.example.expression.function
Интерфейс математической функции (паттерн Strategy).
FUNCTION - org.example.expression.tokenizer.TokenType
Имя функции
FunctionRegistry - Class in org.example.expression.function
Реестр доступных функций.
FunctionRegistry() - Constructor for class org.example.expression.function.FunctionRegistry
Создает реестр с базовыми функциями (sin, cos, ln, log10).

G

get(String) - Method in class org.example.expression.function.FunctionRegistry
Получает функцию по имени.
getDelegate() - Method in enum org.example.expression.function.LogFunction.Type
 
getDelegate() - Method in enum org.example.expression.function.MathFunction.Type
 
getDelegate() - Method in enum org.example.expression.function.TrigonometricalFunction.Type
 
getVariable(String) - Method in class org.example.expression.function.VariableProvider
Возвращает значение переменной.

H

hasFunction(String) - Method in class org.example.expression.function.FunctionRegistry
Проверяет наличие функции.
hashCode() - Method in class org.example.expression.tokenizer.Token
 
hasVariable(String) - Method in class org.example.expression.function.VariableProvider
Проверяет, было ли уже запрошено и закэшировано значение переменной.

L

LBRACKET - org.example.expression.tokenizer.TokenType
Открывающая скобка
LN - org.example.expression.function.LogFunction.Type
 
LOG10 - org.example.expression.function.LogFunction.Type
 
LOG2 - org.example.expression.function.LogFunction.Type
 
LogFunction - Class in org.example.expression.function
Стратегия для логарифмических функций (ln, log10, log).
LogFunction(LogFunction.Type) - Constructor for class org.example.expression.function.LogFunction
Создает логарифмическую функцию.
LogFunction.Type - Enum in org.example.expression.function
Тип логарифмической функции.

M

main(String[]) - Static method in class org.example.Main
 
Main - Class in org.example
 
Main() - Constructor for class org.example.Main
 
MathFunction - Class in org.example.expression.function
 
MathFunction.Type - Enum in org.example.expression.function
 
MINUS - org.example.expression.tokenizer.TokenType
Оператор вычитания
MULTIPLY - org.example.expression.tokenizer.TokenType
Оператор умножения

N

NUMBER - org.example.expression.tokenizer.TokenType
Число (целое или дробное)

O

org.example - package org.example
 
org.example.expression - package org.example.expression
Публичный API для парсинга и вычисления математических выражений.
org.example.expression.evaluator - package org.example.expression.evaluator
Интерпретаторы и вычислители выражений.
org.example.expression.function - package org.example.expression.function
Математические функции, реестр операций и провайдер переменных.
org.example.expression.tokenizer - package org.example.expression.tokenizer
Компоненты лексического и синтаксического анализа.

P

parse(List<Token>) - Method in class org.example.expression.tokenizer.Parser
Парсит список токенов в обратную польскую нотацию.
Parser - Class in org.example.expression.tokenizer
Парсер выражений: преобразует инфиксную нотацию в обратную польскую (RPN).
Parser() - Constructor for class org.example.expression.tokenizer.Parser
 
PLUS - org.example.expression.tokenizer.TokenType
Оператор сложения

R

RBRACKET - org.example.expression.tokenizer.TokenType
Закрывающая скобка
register(String, Function) - Method in class org.example.expression.function.FunctionRegistry
Регистрирует функцию по имени.

S

SIN - org.example.expression.function.TrigonometricalFunction.Type
 
SQRT - org.example.expression.function.MathFunction.Type
 
StackEvaluator - Class in org.example.expression.evaluator
Интерпретатор математических выражений в обратной польской записи (RPN).
StackEvaluator() - Constructor for class org.example.expression.evaluator.StackEvaluator
Создаёт эвалюатор с настройками по умолчанию (без переменных).
StackEvaluator(VariableProvider, FunctionRegistry) - Constructor for class org.example.expression.evaluator.StackEvaluator
Создаёт эвалюатор с зависимостями.

T

TAN - org.example.expression.function.TrigonometricalFunction.Type
 
Token - Class in org.example.expression.tokenizer
Лексема выражения.
Token(TokenType, String) - Constructor for class org.example.expression.tokenizer.Token
 
tokenize(String) - Method in class org.example.expression.tokenizer.Tokenizer
Токенизирует входное выражение.
Tokenizer - Class in org.example.expression.tokenizer
Лексический анализатор (Lexer).
Tokenizer() - Constructor for class org.example.expression.tokenizer.Tokenizer
 
TokenType - Enum in org.example.expression.tokenizer
Типы токенов для лексического анализа.
toString() - Method in class org.example.expression.tokenizer.Token
 
TrigonometricalFunction - Class in org.example.expression.function
Стратегия для тригонометрических функций (sin, cos, tan).
TrigonometricalFunction(TrigonometricalFunction.Type) - Constructor for class org.example.expression.function.TrigonometricalFunction
Создает тригонометрическую функцию.
TrigonometricalFunction.Type - Enum in org.example.expression.function
Тип тригонометрической функции.
type() - Method in class org.example.expression.tokenizer.Token
 

V

value() - Method in class org.example.expression.tokenizer.Token
 
valueOf(String) - Static method in enum org.example.expression.function.LogFunction.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.example.expression.function.MathFunction.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.example.expression.function.TrigonometricalFunction.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.example.expression.tokenizer.TokenType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.example.expression.function.LogFunction.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.example.expression.function.MathFunction.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.example.expression.function.TrigonometricalFunction.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.example.expression.tokenizer.TokenType
Returns an array containing the constants of this enum type, in the order they are declared.
VARIABLE - org.example.expression.tokenizer.TokenType
Имя переменной
VariableProvider - Class in org.example.expression.function
Провайдер значений переменных с механизмом кэширования.
VariableProvider() - Constructor for class org.example.expression.function.VariableProvider
Создаёт провайдер с вводом из стандартного потока (System.in).
VariableProvider(Scanner) - Constructor for class org.example.expression.function.VariableProvider
Создаёт провайдер с кастомным источником ввода.
A C D E F G H L M N O P R S T V 
All Classes All Packages