Index

A B C D E F G H L M N O P Q R S T V 
All Classes and Interfaces|All Packages

A

a - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractBinaryToBooleanExpression
The first Type extending Expression.
a - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractBinaryToDoubleExpression
The first Type extending Expression.
AbstractBinaryToBooleanExpression<T extends Expression> - Class in ch.andre601.expressionparser.expressions.abstracted
Abstract class implementing the ToBooleanExpression interface.
AbstractBinaryToBooleanExpression(T, T) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractBinaryToBooleanExpression
Constructor for creating a new AbstractBinaryToBooleanExpression.
AbstractBinaryToDoubleExpression<T extends Expression> - Class in ch.andre601.expressionparser.expressions.abstracted
Abstract class implementing the ToDoubleExpression interface.
AbstractBinaryToDoubleExpression(T, T) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractBinaryToDoubleExpression
Constructor for creating a new AbstractBinaryToDoubleExpression
AbstractBooleanExpressionTemplate - Class in ch.andre601.expressionparser.templates.abstracted
Abstract class implementing ExpressionTemplate.
AbstractBooleanExpressionTemplate() - Constructor for class ch.andre601.expressionparser.templates.abstracted.AbstractBooleanExpressionTemplate
 
AbstractDoubleExpressionTemplate - Class in ch.andre601.expressionparser.templates.abstracted
Abstract class implementing ExpressionTemplate.
AbstractDoubleExpressionTemplate() - Constructor for class ch.andre601.expressionparser.templates.abstracted.AbstractDoubleExpressionTemplate
 
AbstractStringExpressionTemplate - Class in ch.andre601.expressionparser.templates.abstracted
Abstract class implementing ExpressionTemplate.
AbstractStringExpressionTemplate() - Constructor for class ch.andre601.expressionparser.templates.abstracted.AbstractStringExpressionTemplate
 
AbstractToBooleanExpression<T extends Expression> - Class in ch.andre601.expressionparser.expressions.abstracted
Abstract class implementing the ToBooleanExpression interface.
AbstractToBooleanExpression(Collection<T>) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractToBooleanExpression
Constructor for creating a new AbstractToBooleanExpression.
AbstractToDoubleExpression<T extends Expression> - Class in ch.andre601.expressionparser.expressions.abstracted
Abstract class that implements the ToDoubleExpression interface.
AbstractToDoubleExpression(Collection<T>) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractToDoubleExpression
Constructor for creating a new AbstractToBooleanExpression.
AbstractToStringExpression<T extends Expression> - Class in ch.andre601.expressionparser.expressions.abstracted
Abstract class that implements the ToStringExpression interface.
AbstractToStringExpression(Collection<T>) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractToStringExpression
Constructor for creating a new AbstractToStringExpression.
AbstractUnaryToBooleanExpression<T extends Expression> - Class in ch.andre601.expressionparser.expressions.abstracted
Abstract class that implements the ToBooleanExpression interface.
AbstractUnaryToBooleanExpression(T) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractUnaryToBooleanExpression
Constructor for creating a new AbstractUnaryToBooleanExpression.
AbstractUnaryToDoubleExpression<T extends Expression> - Class in ch.andre601.expressionparser.expressions.abstracted
Abstract class that implements the ToDoubleExpression interface.
AbstractUnaryToDoubleExpression(T) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractUnaryToDoubleExpression
Constructor for creating a new AbstractUnaryToDoubleExpression.
AbstractUnaryToStringExpression<T extends Expression> - Class in ch.andre601.expressionparser.expressions.abstracted
Abstract class that implements the ToStringExpression interface.
AbstractUnaryToStringExpression(T) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractUnaryToStringExpression
Constructor for creating a new AbstractUnaryToStringExpression.
ADD - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
addDefaults() - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
Applies default values for this Builder class to use.
addOperator(Token, Operator) - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
Adds a new Token instance as key with a new Operator instance as value to use by the DefaultExpressionParserEngine.
addTokenReader(TokenReader) - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
addValueReader(ValueReader) - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
and(Collection<ToBooleanExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if and only if all provided ToBooleanExpressions have a true boolean value.
and(Collection<ExpressionTemplate>) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true if and only if all provided ExpressionTemplates return true.
AND - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
appendWarning(int, String) - Method in class ch.andre601.expressionparser.ParseWarnCollector
Adds a new warning with a specific position of where the error appeared.
appendWarning(String) - Method in class ch.andre601.expressionparser.ParseWarnCollector
Adds a new warning without an exact position within the text.
appendWarningFormatted(int, String, Object...) - Method in class ch.andre601.expressionparser.ParseWarnCollector
Adds a new warning with a specific position of where the error appeared.
appendWarningFormatted(String, Object...) - Method in class ch.andre601.expressionparser.ParseWarnCollector
Adds a new warning without an exact position within the text.

B

b - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractBinaryToBooleanExpression
The second Type extending Expression.
b - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractBinaryToDoubleExpression
The second Type extending Expression.
BooleanConstantReader - Class in ch.andre601.expressionparser.parsers
ValueReader converting BooleanToken instances into ExpressionTemplate instances.
BooleanConstantReader() - Constructor for class ch.andre601.expressionparser.parsers.BooleanConstantReader
 
BooleanToken - Class in ch.andre601.expressionparser.tokens
Token instance representing and holding a boolean value.
BooleanToken(boolean) - Constructor for class ch.andre601.expressionparser.tokens.BooleanToken
Constructor for creating a new BooleanToken.
build() - Method in class ch.andre601.expressionparser.DefaultExpressionParserEngine.DefaultBuilder
Builds a new instance of the DefaultExpressionParserEngine to use with the values set in this Builder.
build() - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
Method to build a new instance of what this Builder is using.
Builder() - Constructor for class ch.andre601.expressionparser.ExpressionParserEngine.Builder
Constructor for creating a new Builder.

C

ch.andre601.expressionparser - package ch.andre601.expressionparser
 
ch.andre601.expressionparser.expressions - package ch.andre601.expressionparser.expressions
 
ch.andre601.expressionparser.expressions.abstracted - package ch.andre601.expressionparser.expressions.abstracted
 
ch.andre601.expressionparser.operator - package ch.andre601.expressionparser.operator
 
ch.andre601.expressionparser.parsers - package ch.andre601.expressionparser.parsers
 
ch.andre601.expressionparser.templates - package ch.andre601.expressionparser.templates
 
ch.andre601.expressionparser.templates.abstracted - package ch.andre601.expressionparser.templates.abstracted
 
ch.andre601.expressionparser.tokens - package ch.andre601.expressionparser.tokens
 
ch.andre601.expressionparser.tokens.readers - package ch.andre601.expressionparser.tokens.readers
 
CLOSING_PARENTHESIS - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
compile(String, ParseWarnCollector) - Method in class ch.andre601.expressionparser.DefaultExpressionParserEngine
Parses the provided text into a ExpressionTemplate to use.
compile(String, ParseWarnCollector) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
Converts the provided String into a ExpressionTemplate instance to use.
compileToBoolean(String, ParseWarnCollector) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
Parses the provided text into a ExpressionTemplate and returns its boolean value to use.
compileToBoolean(String, ParseWarnCollector, boolean) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
Parses the provided text into a ExpressionTemplate and returns its boolean value to use.
compileToDouble(String, ParseWarnCollector) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
Parses the provided text into a ExpressionTemplate and returns its double value to use.
compileToDouble(String, ParseWarnCollector, double) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
Parses the provided text into a ExpressionTemplate and returns its double value to use.
compileToString(String, ParseWarnCollector) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
Parses the provided text into a ExpressionTemplate and returns its String value to use.
compileToString(String, ParseWarnCollector, String) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
Parses the provided text into a ExpressionTemplate and returns its String value to use.
concat(Collection<ToStringExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToStringExpression who's String value is the concatenated (merged) String values of all provided ToStringExpressions.
concat(Collection<ExpressionTemplate>) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate with the String values of the provided ExpressionTemplates merged together.
CONCAT_STRING - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
ConstantExpressionTemplate - Class in ch.andre601.expressionparser.templates
ConstantExpressionTemplate(boolean, double, String) - Constructor for class ch.andre601.expressionparser.templates.ConstantExpressionTemplate
Constructor for creating a new ConstantExpressionTemplate.
ConstantToBooleanExpression(boolean) - Constructor for class ch.andre601.expressionparser.expressions.ToBooleanExpression.ConstantToBooleanExpression
Constructor for creating a new ConstantToBooleanExpression.
ConstantToDoubleExpression(double) - Constructor for class ch.andre601.expressionparser.expressions.ToDoubleExpression.ConstantToDoubleExpression
Constructor for creating a new ConstantToDoubleExpression.
ConstantToStringExpression(String) - Constructor for class ch.andre601.expressionparser.expressions.ToStringExpression.ConstantToStringExpression
Constructor for creating a new ConstantToStringExpression.
contains(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if the String value of the first ToStringExpression contains the String value of the second ToStringExpression.
contains(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true when the String value of the first ExpressionTemplate contains the String value of the second ExpressionTemplate.
CONTAINS - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
Context(int, String) - Constructor for record class ch.andre601.expressionparser.ParseWarnCollector.Context
Creates an instance of a Context record class.
Conversions - Class in ch.andre601.expressionparser
Class containing static methods to convert ToBooleanExpression, ToDoubleExpression and ToStringExpression into their respective counterparts.
Conversions() - Constructor for class ch.andre601.expressionparser.Conversions
 
createDefault() - Static method in class ch.andre601.expressionparser.DefaultExpressionParserEngine
Convenience method to create a new instance of this class with default values already applied.
createDefault() - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
Deprecated.
Method renamed for clarity. Use ExpressionParserEngine.Builder.addDefaults() instead.
createTemplate(ExpressionTemplate, ExpressionTemplate) - Method in class ch.andre601.expressionparser.operator.ListOperator
Method to create an ExpressionTemplate from two ExpressionTemplates.
createTemplate(ExpressionTemplate, ExpressionTemplate) - Method in class ch.andre601.expressionparser.operator.Operator
Method to create an ExpressionTemplate from two ExpressionTemplates.
createTemplate(List<ExpressionTemplate>) - Method in class ch.andre601.expressionparser.operator.ListOperator
Method to create an ExpressionTemplate from a Collection of ExpressionTemplates.

D

DefaultBuilder() - Constructor for class ch.andre601.expressionparser.DefaultExpressionParserEngine.DefaultBuilder
 
DefaultExpressionParserEngine - Class in ch.andre601.expressionparser
Class for a ExpressionParserEngine instance to use.
DefaultExpressionParserEngine(List<TokenReader>, ImmutableMap<Token, Operator>, ImmutableList<ValueReader>) - Constructor for class ch.andre601.expressionparser.DefaultExpressionParserEngine
Creates a new instance of this class.
DefaultExpressionParserEngine.DefaultBuilder - Class in ch.andre601.expressionparser
DefaultTokens - Class in ch.andre601.expressionparser.tokens
Class containing a collection of pre-made Tokens.
DefaultTokens() - Constructor for class ch.andre601.expressionparser.tokens.DefaultTokens
 
delegate - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractUnaryToBooleanExpression
Type extending Expression.
delegate - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractUnaryToDoubleExpression
Type extending Expression.
delegate - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractUnaryToStringExpression
Type extending Expression.
div(ToDoubleExpression, ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToDoubleExpression who's double value is the double value of the first ToDoubleExpression divided by the double value of the second ToDoubleExpression.
div(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's double value is the double value of the first ExpressionTemplate divided by the double value of the second ExpressionTemplate.
DIVIDE - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 

E

ENDS_WITH - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
endsWith(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if the String value of the first ToStringExpression ends with the String value of the second ToStringExpression.
endsWith(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true when the String value of the first ExpressionTemplate ends with the String value of the second ExpressionTemplate.
equal(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if and only if the String values of both provided ToStringExpressions are equal.
equal(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value is true if and only if the two provided ExpressionTemplates do have equal String values.
EQUAL - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
EQUAL_IGNORE_CASE - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
equalIgnoreCase(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if and only if the String values of both provided ToStringExpressions are equal.
equalIgnoreCase(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value is true if and only if the two provided ExpressionTemplates do have equal String values.
equals(Object) - Method in record class ch.andre601.expressionparser.ParseWarnCollector.Context
Indicates whether some other object is "equal to" this one.
evaluate() - Method in class ch.andre601.expressionparser.expressions.ToBooleanExpression.ConstantToBooleanExpression
Method used to return a boolean value.
evaluate() - Method in interface ch.andre601.expressionparser.expressions.ToBooleanExpression
Method used to return a boolean value.
evaluate() - Method in class ch.andre601.expressionparser.expressions.ToDoubleExpression.ConstantToDoubleExpression
Method used to return a double value.
evaluate() - Method in interface ch.andre601.expressionparser.expressions.ToDoubleExpression
Method used to return a double value.
evaluate() - Method in class ch.andre601.expressionparser.expressions.ToStringExpression.ConstantToStringExpression
Method used to return a String value.
evaluate() - Method in interface ch.andre601.expressionparser.expressions.ToStringExpression
Method used to return a String value.
Expression - Interface in ch.andre601.expressionparser.expressions
Empty interface used to extend other interfaces with.
ExpressionParserEngine - Interface in ch.andre601.expressionparser
This interface can be used to create multiple Expression parsers, all using the same core stuff.
ExpressionParserEngine.Builder<T extends ExpressionParserEngine> - Class in ch.andre601.expressionparser
Abstract class that can be used to create a new Builder for a ExpressionParserEngine.
Expressions - Class in ch.andre601.expressionparser.expressions
Class containing a collection of pre-made methods to perform certain operations with.
Expressions() - Constructor for class ch.andre601.expressionparser.expressions.Expressions
 
ExpressionTemplate - Interface in ch.andre601.expressionparser.templates
Interface used to implement into classes.
ExpressionTemplateParser - Class in ch.andre601.expressionparser.parsers
Class used to parse a list of Tokens into a single ExpressionTemplate.
ExpressionTemplateParser(ImmutableMap<Token, Operator>, ImmutableList<ValueReader>) - Constructor for class ch.andre601.expressionparser.parsers.ExpressionTemplateParser
Creates a new instance of this class which uses the provided Map of Tokens and their Operators and also the provided list of ValueReaders.
ExpressionTemplates - Class in ch.andre601.expressionparser.templates
Class containing a collection of pre-made ExpressionTemplate actions.
ExpressionTemplates() - Constructor for class ch.andre601.expressionparser.templates.ExpressionTemplates
 
ExpressionTokenizer - Class in ch.andre601.expressionparser.expressions
The ExpressionTokenizer is responsible for turning a String into a collection of Token instances using a provided list of TokenReader instances.
ExpressionTokenizer(Iterable<TokenReader>) - Constructor for class ch.andre601.expressionparser.expressions.ExpressionTokenizer
Constructor for creating a new ExpressionTokenizer.

F

FALSE - Static variable in class ch.andre601.expressionparser.tokens.BooleanToken
Static BooleanToken instance holding the boolean value false.

G

getExpression() - Method in class ch.andre601.expressionparser.ParseWarnCollector
Returns the Expression that this ParseWarnCollector is holding.
getOperators() - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
Returns a Map of currently set Tokens and Operators.
getPriority() - Method in class ch.andre601.expressionparser.operator.Operator
Returns the priority set for this Operator.
getPriority() - Method in class ch.andre601.expressionparser.tokens.readers.TokenReader
Priority of the TokenReader instance.
getTokenReaders() - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
Returns a List of currently set TokenReaders.
getValue() - Method in class ch.andre601.expressionparser.tokens.BooleanToken
Returns the boolean value stored within this instance.
getValue() - Method in class ch.andre601.expressionparser.tokens.NumberToken
Returns the double value stored within this instance.
getValue() - Method in class ch.andre601.expressionparser.tokens.StringToken
Returns the String value stored in this instance.
getValueReaders() - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
Returns a List of currently set ValueReaders.
getWarnings() - Method in class ch.andre601.expressionparser.ParseWarnCollector
Returns a List of Context instances which may contain a position and warning.
greater(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true when the double value of the first ExpressionTemplate is larger than the double value of the second ExpressionTemplate.
GREATER_OR_EQUAL_THAN - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
GREATER_THAN - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
greaterOrEqual(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true when the double value of the first ExpressionTemplate is larger than or equal to the double value of the second ExpressionTemplate.
greaterOrEqualThan(ToDoubleExpression, ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if the double value of the first ToDoubleExpression is greater than or equal to the double value of the second ToDoubleExpression.
greaterThan(ToDoubleExpression, ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if the double value of the first ToDoubleExpression is greater than the double value of the second ToDoubleExpression.

H

hashCode() - Method in record class ch.andre601.expressionparser.ParseWarnCollector.Context
Returns a hash code value for this object.
hasWarnings() - Method in class ch.andre601.expressionparser.ParseWarnCollector
Returns whether the ParseWarnCollector has collected any warnings.

L

less(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true when the double value of the first ExpressionTemplate is less than the double value of the second ExpressionTemplate.
LESS_OR_EQUAL_THAN - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
LESS_THAN - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
lessOrEqual(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true when the double value of the first ExpressionTemplate is less than or equal to the double value of the second ExpressionTemplate.
lessOrEqualThan(ToDoubleExpression, ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if the double value of the first ToDoubleExpression is less than or equal to the double value of the second ToDoubleExpression.
lessThan(ToDoubleExpression, ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if the double value of the first ToDoubleExpression is less than the double value of the second ToDoubleExpression.
ListOperator - Class in ch.andre601.expressionparser.operator
The ListOperator can be used to handling a collection of ExpressionTemplates.
ListOperator(int) - Constructor for class ch.andre601.expressionparser.operator.ListOperator
Constructor for creating a new ListOperator.
literal(boolean) - Static method in interface ch.andre601.expressionparser.expressions.ToBooleanExpression
Creates a new ToBooleanExpression instance containing the provided boolean value.
literal(double) - Static method in interface ch.andre601.expressionparser.expressions.ToDoubleExpression
Creates a new ToDoubleExpression instance containing the provided double value.
literal(String) - Static method in interface ch.andre601.expressionparser.expressions.ToStringExpression
Creates a new ToStringExpression instance containing the provided String value.

M

message() - Method in record class ch.andre601.expressionparser.ParseWarnCollector.Context
Returns the value of the message record component.
MULTIPLY - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 

N

negate(ToBooleanExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Negates the provided ToBooleanExpression.
negate(ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Negates the provided ExpressionTemplate's output.
NegatedExpressionReader - Class in ch.andre601.expressionparser.parsers
ValueReader creating a negated ExpressionTemplate when the first token is the provided one.
NegatedExpressionReader(Token) - Constructor for class ch.andre601.expressionparser.parsers.NegatedExpressionReader
Sets the Token that this ValueReader should look for.
NegatedNumberReader - Class in ch.andre601.expressionparser.parsers
ValueReader creating a negated ExpressionTemplate should the first token be the provided one.
NegatedNumberReader(Token) - Constructor for class ch.andre601.expressionparser.parsers.NegatedNumberReader
Sets the Token that this ValueReader should look for.
negateNumber(ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Negates the provided ToDoubleExpression's double value.
negateNumber(ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Negates the provided ExpressionTemplate's double value.
NEGATION - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
NonQuotedLiteralTokenReader - Class in ch.andre601.expressionparser.tokens.readers
TokenReader instance that parses the provided Text by iterating through it until it finds a space character or hits the end of the text, to then convert into a StringToken instance.
NonQuotedLiteralTokenReader(int) - Constructor for class ch.andre601.expressionparser.tokens.readers.NonQuotedLiteralTokenReader
Constructor for creating a new NonQuotedLiteralTokenReader.
NOT_EQUAL - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
NOT_EQUAL_IGNORE_CASE - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
notEqual(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if and only if the String values of both provided ToStringExpressions are not equal.
notEqual(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value is true if and only if the two provided ExpressionTemplates do not have equal String values.
notEqualIgnoreCase(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if and only if the String values of both provided ToStringExpressions are not equal.
notEqualIgnoreCase(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value is true if and only if the two provided ExpressionTemplates do not have equal String values.
NumberConstantReader - Class in ch.andre601.expressionparser.parsers
ValueReader converting NumberToken into ExpressionTemplate instances.
NumberConstantReader() - Constructor for class ch.andre601.expressionparser.parsers.NumberConstantReader
 
NumberToken - Class in ch.andre601.expressionparser.tokens
Token instance representing a number (double).
NumberToken(double) - Constructor for class ch.andre601.expressionparser.tokens.NumberToken
Constructor for creating a new NumberToken.
NumberTokenReader - Class in ch.andre601.expressionparser.tokens.readers
TokenReader instance that reads the provided text by trying to parse it through a NumberFormatter and creates a NumberToken instance should a valid number be found.
NumberTokenReader(int) - Constructor for class ch.andre601.expressionparser.tokens.readers.NumberTokenReader
Constructor for creating a new NumberTokenReader.

O

of(boolean) - Static method in class ch.andre601.expressionparser.templates.ConstantExpressionTemplate
Creates a new ConstantExpressionTemplate using the provided boolean value.
of(double) - Static method in class ch.andre601.expressionparser.templates.ConstantExpressionTemplate
Creates a new ConstantExpressionTemplate using the provided double value.
of(int, BiFunction<ExpressionTemplate, ExpressionTemplate, ExpressionTemplate>) - Static method in class ch.andre601.expressionparser.operator.Operator
Static method to create a new Operator with its createTemplate method utilizing the provided BiFunction.
of(int, Function<Collection<ExpressionTemplate>, ExpressionTemplate>) - Static method in class ch.andre601.expressionparser.operator.ListOperator
Static method to create a new ListOperator with its createTemplate method utilizing the provided Function.
of(String) - Static method in class ch.andre601.expressionparser.templates.ConstantExpressionTemplate
Creates a new ConstantExpressionTemplate using the provided String value.
OPENING_PARENTHESIS - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
operands - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractToBooleanExpression
Collection of Types extending Expression.
operands - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractToDoubleExpression
Collection of Types extending Expression.
operands - Variable in class ch.andre601.expressionparser.expressions.abstracted.AbstractToStringExpression
Collection of Types extending Expression.
Operator - Class in ch.andre601.expressionparser.operator
Class used to do operations on ExpressionTemplates.
Operator(int) - Constructor for class ch.andre601.expressionparser.operator.Operator
Constructor for creating a new Operator.
or(Collection<ToBooleanExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if at least one of the provided ToBooleanExpressions has a true boolean value.
or(Collection<ExpressionTemplate>) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true if any of the provided ExpressionTemplates returns true.
OR - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 

P

ParenthesisedExpressionReader - Class in ch.andre601.expressionparser.parsers
ValueReader converting a set of token into an ExpressionTemplate if the first token is the same as the first token provided and the follow-up tokens containing the second provided token.
ParenthesisedExpressionReader(Token, Token) - Constructor for class ch.andre601.expressionparser.parsers.ParenthesisedExpressionReader
Sets the tokens to look for when parsing.
parse(String, ParseWarnCollector) - Method in class ch.andre601.expressionparser.expressions.ExpressionTokenizer
Parses the provided String and returns a List of Tokens for it.
parse(List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.ExpressionTemplateParser
Takes a list of Tokens and converts them into a ExpressionTemplate instance.
ParseWarnCollector - Class in ch.andre601.expressionparser
Simple class that is used by the DefaultExpressionParserEngine and the ExpressionTokenizer for when an issue appears.
ParseWarnCollector(String) - Constructor for class ch.andre601.expressionparser.ParseWarnCollector
Creates a new instance of the ParseWarnCollector, with the expression it is used on set.
ParseWarnCollector.Context - Record Class in ch.andre601.expressionparser
Record used to hold the position of where an issue appeared and the warning itself.
PatternTokenReader - Class in ch.andre601.expressionparser.tokens.readers
TokenReader instance that parses the provided text by looking for appearances of a provided pattern and in such a case returns the provided Token instance.
PatternTokenReader(Token, String) - Constructor for class ch.andre601.expressionparser.tokens.readers.PatternTokenReader
Creates a new PatternTokenReader instance with the provided Token instance being used for the provided Pattern String.
PatternTokenReader(Token, String, boolean) - Constructor for class ch.andre601.expressionparser.tokens.readers.PatternTokenReader
Creates a new PatternTokenReader instance with the provided Token instance being used for the provided Pattern String.
position() - Method in record class ch.andre601.expressionparser.ParseWarnCollector.Context
Returns the value of the position record component.
product(Collection<ToDoubleExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToDoubleExpression who's double value is the product of all double values from the provided ToDoubleExpressions.
product(Collection<ExpressionTemplate>) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's double value is the product of all double values from the provided ExpressionTemplates.

Q

QuotedLiteralTokenReader - Class in ch.andre601.expressionparser.tokens.readers
TokenReader instance that parses the provided text by looking for the appearance of the provided char.
QuotedLiteralTokenReader(int, char) - Constructor for class ch.andre601.expressionparser.tokens.readers.QuotedLiteralTokenReader
Constructor for creating a new QuotedLiteralTokenReader.

R

read(ExpressionTemplateParser, List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.BooleanConstantReader
Takes the first entry of the provided list of Tokens and returns a ConstantExpressionTemplate using the retrieved Token's boolean value, if it is a BooleanToken, or null.
read(ExpressionTemplateParser, List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.NegatedExpressionReader
Takes the first entry of the list of Tokens and returns a negated ExpressionTemplate if the retrieved token is the set negation Token, else null.
read(ExpressionTemplateParser, List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.NegatedNumberReader
Takes the first token of the list of Tokens and returns a ExpressionTemplate who's number value is negated, if the retrieved Token is the set negation Token, or null.
read(ExpressionTemplateParser, List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.NumberConstantReader
Takes the first token of the list of Tokens and returns a ConstantExpressionTemplate with its double value set from the retrieved Token, if it is a NumberToken, else null.
read(ExpressionTemplateParser, List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.ParenthesisedExpressionReader
Takes the first Token from the token list and checks, if it is the set opening parenthesis Token.
read(ExpressionTemplateParser, List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.StringConstantReader
Takes the first Token in the list of Tokens and returns a ConstantExpressionTemplate whose String value is the one from the retrieved Token, if it is a StringToken, else null.
read(ExpressionTemplateParser, List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.ValueReader
Method called by the ExpressionTemplateParser to convert a List of Token into a single ExpressionTemplate.
read(String, ParsePosition, ParseWarnCollector) - Method in class ch.andre601.expressionparser.tokens.readers.NonQuotedLiteralTokenReader
Iterates through the provided String until it finds a Whitespace Character at which point it returns a new StringToken whose value is the retrieved String up until the whitespace character.
read(String, ParsePosition, ParseWarnCollector) - Method in class ch.andre601.expressionparser.tokens.readers.NumberTokenReader
Takes the provided Text and parses the content from its current position using a NumberFormat instance.
read(String, ParsePosition, ParseWarnCollector) - Method in class ch.andre601.expressionparser.tokens.readers.PatternTokenReader
Makes a region matches check to see if the String at the current position matches the provided pattern String.
read(String, ParsePosition, ParseWarnCollector) - Method in class ch.andre601.expressionparser.tokens.readers.QuotedLiteralTokenReader
Checks if the current position is less than the text length and if the character at current position is the character set in this TokenReader.
read(String, ParsePosition, ParseWarnCollector) - Method in class ch.andre601.expressionparser.tokens.readers.TokenReader
Abstract method that is called by the ExpressionparserEngine to turn the provided String into a token.
returnBooleanExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractDoubleExpressionTemplate
ToBooleanExpression holding the boolean value true if the double value is anything but 0, else false.
returnBooleanExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractStringExpressionTemplate
ToBooleanExpression holding the String value as boolean value using Boolean.parseBoolean(String).
returnBooleanExpression() - Method in class ch.andre601.expressionparser.templates.ConstantExpressionTemplate
Returns the ToBooleanExpression instance this ExpressionTemplate holds.
returnBooleanExpression() - Method in interface ch.andre601.expressionparser.templates.ExpressionTemplate
Returns the ToBooleanExpression instance this ExpressionTemplate holds.
returnDoubleExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractBooleanExpressionTemplate
ToDoubleExpression holding a double value with either 1, if boolean value is true, or 0.
returnDoubleExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractStringExpressionTemplate
ToDoubleExpression holding the String value as double value using a NumberFormatter.
returnDoubleExpression() - Method in class ch.andre601.expressionparser.templates.ConstantExpressionTemplate
Returns the ToDoubleExpression instance this ExpressionTemplate holds.
returnDoubleExpression() - Method in interface ch.andre601.expressionparser.templates.ExpressionTemplate
Returns the ToDoubleExpression instance this ExpressionTemplate holds.
returnStringExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractBooleanExpressionTemplate
ToStringExpression holding the boolean value as String.
returnStringExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractDoubleExpressionTemplate
ToStringExpression holding the double value as String value.
returnStringExpression() - Method in class ch.andre601.expressionparser.templates.ConstantExpressionTemplate
Returns the ToStringExpression instance this ExpressionTemplate holds.
returnStringExpression() - Method in interface ch.andre601.expressionparser.templates.ExpressionTemplate
Returns the ToStringExpression instance this ExpressionTemplate holds.

S

STARTS_WITH - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
startsWith(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToBooleanExpression who's boolean value is true if the String value of the first ToStringExpression starts with the String value of the second ToStringExpression.
startsWith(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's boolean value returns true when the String value of the first ExpressionTemplate starts with the String value of the second ExpressionTemplate.
StringConstantReader - Class in ch.andre601.expressionparser.parsers
ValueReader converting any StringToken instance into a ExpressionTemplate instance.
StringConstantReader() - Constructor for class ch.andre601.expressionparser.parsers.StringConstantReader
 
StringToken - Class in ch.andre601.expressionparser.tokens
Token instance representing a String value.
StringToken(String) - Constructor for class ch.andre601.expressionparser.tokens.StringToken
Constructor for creating a new StringToken.
sub(ToDoubleExpression, ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToDoubleExpression who's double value is the double value of the first ToDoubleExpression minus the double value of the second ToDoubleExpression.
sub(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's double value is the double value of the first ExpressionTemplate minus the double value of the second ExpressionTemplate.
SUBTRACT - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
 
sum(Collection<ToDoubleExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
Returns a ToDoubleExpression who's double value is the sum of the double values of all provided ToDoubleExpressions.
sum(Collection<ExpressionTemplate>) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
Returns a ExpressionTemplate who's double value is the sum of all double values from the provided ExpressionTemplates.

T

toBoolean(ToDoubleExpression) - Static method in class ch.andre601.expressionparser.Conversions
Converts the provided ToDoubleExpression into a ToBooleanExpression with its boolean value being true if the ToDoubleExpression's double value is anything but zero.
toBoolean(ToStringExpression) - Static method in class ch.andre601.expressionparser.Conversions
Converts the provided ToStringExpression into a ToBooleanExpression with its boolean value being the output of Boolean.parseBoolean(expression.evaluate()).
ToBooleanExpression - Interface in ch.andre601.expressionparser.expressions
Expression Interface to turn an expression into a boolean value.
ToBooleanExpression.ConstantToBooleanExpression - Class in ch.andre601.expressionparser.expressions
Pre-made class that can be used through the literal method of the ToBooleanExpression interface.
toDouble(ToBooleanExpression) - Static method in class ch.andre601.expressionparser.Conversions
Converts the provided ToBooleanExpression into a ToDoubleExpression with its double value being one should the ToBooleanExpression's boolean value be true, else zero.
toDouble(ToStringExpression) - Static method in class ch.andre601.expressionparser.Conversions
Converts the provided ToStringExpression into a ToDoubleExpression with its double value being parsed from the ToStringExpression's String value using a static NumberFormatter.
ToDoubleExpression - Interface in ch.andre601.expressionparser.expressions
Expression interface to turn an expression into a double.
ToDoubleExpression.ConstantToDoubleExpression - Class in ch.andre601.expressionparser.expressions
Pre-made class that can be used through the literal method of the ToDoubleExpression interface.
Token - Class in ch.andre601.expressionparser.tokens
Class used to create Tokens.
Token(String) - Constructor for class ch.andre601.expressionparser.tokens.Token
Constructor for creating a new Token.
TokenReader - Class in ch.andre601.expressionparser.tokens.readers
The token reader is used to find specific patterns within a provided text to then turn into a Token, "tokenizing" the text over time.
TokenReader(int) - Constructor for class ch.andre601.expressionparser.tokens.readers.TokenReader
Constructor for creating a new TokenReader.
toString() - Method in record class ch.andre601.expressionparser.ParseWarnCollector.Context
Returns a string representation of this record class.
toString() - Method in class ch.andre601.expressionparser.tokens.Token
Returns the set ID of the Token.
toString(ToBooleanExpression) - Static method in class ch.andre601.expressionparser.Conversions
Converts the provided ToBooleanExpression into a ToStringExpression with its String value being the output of Boolean.toString(expression.evaluate()).
toString(ToDoubleExpression) - Static method in class ch.andre601.expressionparser.Conversions
Converts the provided ToDoubleExpression into a ToStringExpression with its String value being the output of either Integer.toString((int)expression.evaluate()) or Double.toString(expression.evaluate()) depending on if the ToDoubleExpression's double value can be cast to an Integer.
ToStringExpression - Interface in ch.andre601.expressionparser.expressions
Expression interface to turn an expression into a String.
ToStringExpression.ConstantToStringExpression - Class in ch.andre601.expressionparser.expressions
Pre-made class that can be used through the literal method of the ToStringExpression interface.
TRUE - Static variable in class ch.andre601.expressionparser.tokens.BooleanToken
Static BooleanToken instance holding the boolean value true.

V

ValueReader - Class in ch.andre601.expressionparser.parsers
Abstract class used in other classes to create a ValueReader.
ValueReader() - Constructor for class ch.andre601.expressionparser.parsers.ValueReader
 
A B C D E F G H L M N O P Q R S T V 
All Classes and Interfaces|All Packages