Index
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> - Class in ch.andre601.expressionparser.expressions.abstracted
-
Abstract class implementing the
ToBooleanExpressioninterface. - AbstractBinaryToBooleanExpression(T, T) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractBinaryToBooleanExpression
-
Constructor for creating a new AbstractBinaryToBooleanExpression.
- AbstractBinaryToDoubleExpression<T> - Class in ch.andre601.expressionparser.expressions.abstracted
-
Abstract class implementing the
ToDoubleExpressioninterface. - 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> - Class in ch.andre601.expressionparser.expressions.abstracted
-
Abstract class implementing the
ToBooleanExpressioninterface. - AbstractToBooleanExpression(Collection<T>) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractToBooleanExpression
-
Constructor for creating a new AbstractToBooleanExpression.
- AbstractToDoubleExpression<T> - Class in ch.andre601.expressionparser.expressions.abstracted
-
Abstract class that implements the
ToDoubleExpressioninterface. - AbstractToDoubleExpression(Collection<T>) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractToDoubleExpression
-
Constructor for creating a new AbstractToBooleanExpression.
- AbstractToStringExpression<T> - Class in ch.andre601.expressionparser.expressions.abstracted
-
Abstract class that implements the
ToStringExpressioninterface. - AbstractToStringExpression(Collection<T>) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractToStringExpression
-
Constructor for creating a new AbstractToStringExpression.
- AbstractUnaryToBooleanExpression<T> - Class in ch.andre601.expressionparser.expressions.abstracted
-
Abstract class that implements the
ToBooleanExpressioninterface. - AbstractUnaryToBooleanExpression(T) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractUnaryToBooleanExpression
-
Constructor for creating a new AbstractUnaryToBooleanExpression.
- AbstractUnaryToDoubleExpression<T> - Class in ch.andre601.expressionparser.expressions.abstracted
-
Abstract class that implements the
ToDoubleExpressioninterface. - AbstractUnaryToDoubleExpression(T) - Constructor for class ch.andre601.expressionparser.expressions.abstracted.AbstractUnaryToDoubleExpression
-
Constructor for creating a new AbstractUnaryToDoubleExpression.
- AbstractUnaryToStringExpression<T> - Class in ch.andre601.expressionparser.expressions.abstracted
-
Abstract class that implements the
ToStringExpressioninterface. - 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
-
Tokeninstance used for add operands (+). - 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
-
Adds a new TokenReader instance to use by the
DefaultExpressionParserEngine. - addValueReader(ValueReader) - Method in class ch.andre601.expressionparser.ExpressionParserEngine.Builder
-
Adds a new ValueReader instance to use by the
DefaultExpressionParserEngine. - and(Collection<ToBooleanExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho'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
ExpressionTemplatewho'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
- 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
DefaultExpressionParserEngineto 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
-
Tokeninstance used for closing parenthesis ()). - compile(String, ParseWarnCollector) - Method in class ch.andre601.expressionparser.DefaultExpressionParserEngine
-
Parses the provided text into a
ExpressionTemplateto 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
ExpressionTemplateand returns itsbooleanvalue to use. - compileToBoolean(String, ParseWarnCollector, boolean) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
-
Parses the provided text into a
ExpressionTemplateand returns itsbooleanvalue to use. - compileToDouble(String, ParseWarnCollector) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
-
Parses the provided text into a
ExpressionTemplateand returns itsdoublevalue to use. - compileToDouble(String, ParseWarnCollector, double) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
-
Parses the provided text into a
ExpressionTemplateand returns itsdoublevalue to use. - compileToString(String, ParseWarnCollector) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
-
Parses the provided text into a
ExpressionTemplateand returns itsStringvalue to use. - compileToString(String, ParseWarnCollector, String) - Method in interface ch.andre601.expressionparser.ExpressionParserEngine
-
Parses the provided text into a
ExpressionTemplateand returns itsStringvalue to use. - concat(Collection<ToStringExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToStringExpressionwhose 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
ExpressionTemplatewith the String values of the provided ExpressionTemplates merged together. - CONCAT_STRING - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for concatenating character (.). - ConstantExpressionTemplate - Class in ch.andre601.expressionparser.templates
-
An ExpressionTemplate instance that holds a
ToBooleanExpression,ToDoubleExpressionandToStringExpressioninstance to call. - 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
ToBooleanExpressionwho's boolean value is true if the String value of the firstToStringExpressioncontains the String value of the secondToStringExpression. - contains(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
-
Returns a
ExpressionTemplatewho'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
-
Tokeninstance used for contains operands (<_). - CONTAINS_IGNORE_CASE - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for contains (ignoring case) operands (<~). - containsIgnoreCase(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho's boolean value is true if the String value of the firstToStringExpressioncontains the String value of the secondToStringExpression. - containsIgnoreCase(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
-
Returns a
ExpressionTemplatewho's boolean value returns true when the String value of the first ExpressionTemplate contains the String value of the second ExpressionTemplate. - Context(int, String) - Constructor for record class ch.andre601.expressionparser.ParseWarnCollector.Context
-
Creates an instance of a
Contextrecord class. - Conversions - Class in ch.andre601.expressionparser
-
Class containing static methods to convert
ToBooleanExpression,ToDoubleExpressionandToStringExpressioninto 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.
- createTemplate(ExpressionTemplate, ExpressionTemplate) - Method in class ch.andre601.expressionparser.operator.ListOperator
-
Method to create an
ExpressionTemplatefrom two ExpressionTemplates. - createTemplate(ExpressionTemplate, ExpressionTemplate) - Method in class ch.andre601.expressionparser.operator.Operator
-
Method to create an
ExpressionTemplatefrom two ExpressionTemplates. - createTemplate(List<ExpressionTemplate>) - Method in class ch.andre601.expressionparser.operator.ListOperator
-
Method to create an
ExpressionTemplatefrom a Collection of ExpressionTemplates.
D
- DefaultBuilder() - Constructor for class ch.andre601.expressionparser.DefaultExpressionParserEngine.DefaultBuilder
- DefaultExpressionParserEngine - Class in ch.andre601.expressionparser
-
Class for a
ExpressionParserEngineinstance 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
-
Class extending
ExpressionParserEngine.BuilderwithDefaultExpressionParserEngine. - 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
ToDoubleExpressionwho'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
ExpressionTemplatewho'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
-
Tokeninstance used for divide operands (/).
E
- ENDS_WITH - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for "ends with" operands (-|). - ENDS_WITH_IGNORE_CASE - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for "ends with" (ignoring case) operands (~|). - endsWith(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho's boolean value is true if the String value of the firstToStringExpressionends with the String value of the secondToStringExpression. - endsWith(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
-
Returns a
ExpressionTemplatewho's boolean value returns true when the String value of the first ExpressionTemplate ends with the String value of the second ExpressionTemplate. - endsWithIgnoreCase(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho's boolean value is true if the String value of the firstToStringExpressionends with the String value of the secondToStringExpression. - endsWithIgnoreCase(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
-
Returns a
ExpressionTemplatewho'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
ToBooleanExpressionwho'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
ExpressionTemplatewho'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
ToBooleanExpressionwho'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
ExpressionTemplatewho'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> - 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
ExpressionTemplateactions. - 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
- 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
ExpressionTemplatewho'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
-
Tokeninstance used for "greater or equal to" operands (>=). - GREATER_THAN - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for "greater than" operands (>). - greaterOrEqual(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
-
Returns a
ExpressionTemplatewho'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
ToBooleanExpressionwho's boolean value is true if the double value of the firstToDoubleExpressionis greater than or equal to the double value of the secondToDoubleExpression. - greaterThan(ToDoubleExpression, ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho's boolean value is true if the double value of the firstToDoubleExpressionis greater than the double value of the secondToDoubleExpression.
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
ExpressionTemplatewho'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
-
Tokeninstance used for "less or equal than" operands (<=). - LESS_THAN - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for "less than" operands (<). - lessOrEqual(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
-
Returns a
ExpressionTemplatewho'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
ToBooleanExpressionwho's boolean value is true if the double value of the firstToDoubleExpressionis less than or equal to the double value of the secondToDoubleExpression. - lessThan(ToDoubleExpression, ToDoubleExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho's boolean value is true if the double value of the firstToDoubleExpressionis less than the double value of the secondToDoubleExpression. - 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
messagerecord component. - MULTIPLY - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for multiply operands (*).
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
-
ValueReadercreating a negatedExpressionTemplatewhen the first token is the provided one. - NegatedExpressionReader(Token) - Constructor for class ch.andre601.expressionparser.parsers.NegatedExpressionReader
-
Sets the
Tokenthat this ValueReader should look for. - NegatedNumberReader - Class in ch.andre601.expressionparser.parsers
-
ValueReadercreating a negatedExpressionTemplateshould the first token be the provided one. - NegatedNumberReader(Token) - Constructor for class ch.andre601.expressionparser.parsers.NegatedNumberReader
-
Sets the
Tokenthat 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
-
Tokeninstance used for negation characters (!). - 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
-
Tokeninstance used for not-equals operands (!=). - NOT_EQUAL_IGNORE_CASE - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for not-equals (ignoring case) operands (!~). - notEqual(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho'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
ExpressionTemplatewho'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
ToBooleanExpressionwho'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
ExpressionTemplatewho'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
- 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
-
Tokeninstance used for opening parenthesis ((). - 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
ToBooleanExpressionwho'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
ExpressionTemplatewho'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
-
ValueReaderconverting a set of token into anExpressionTemplateif 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
ExpressionTemplateinstance. - ParseWarnCollector - Class in ch.andre601.expressionparser
-
Simple class that is used by the
DefaultExpressionParserEngineand theExpressionTokenizerfor 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
positionrecord component. - product(Collection<ToDoubleExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToDoubleExpressionwho'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
ExpressionTemplatewho'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
ConstantExpressionTemplateusing the retrieved Token's boolean value, if it is aBooleanToken, ornull. - 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
ExpressionTemplatewho's number value is negated, if the retrieved Token is the set negation Token, ornull. - 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
ConstantExpressionTemplatewith its double value set from the retrieved Token, if it is aNumberToken, elsenull. - 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
ConstantExpressionTemplatewhose String value is the one from the retrieved Token, if it is aStringToken, elsenull. - read(ExpressionTemplateParser, List<Token>, ParseWarnCollector) - Method in class ch.andre601.expressionparser.parsers.ValueReader
-
Method called by the
ExpressionTemplateParserto convert a List ofTokeninto a singleExpressionTemplate. - 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
StringTokenwhose 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
NumberFormatinstance. - 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
-
ToBooleanExpressionholding the boolean valuetrueif the double value is anything but 0, else false. - returnBooleanExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractStringExpressionTemplate
-
ToBooleanExpressionholding the String value as boolean value usingBoolean.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
-
ToDoubleExpressionholding a double value with either 1, if boolean value is true, or 0. - returnDoubleExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractStringExpressionTemplate
-
ToDoubleExpressionholding 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
-
ToStringExpressionholding the boolean value as String. - returnStringExpression() - Method in class ch.andre601.expressionparser.templates.abstracted.AbstractDoubleExpressionTemplate
-
ToStringExpressionholding 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
-
Tokeninstance used for "starts with" operands (|-). - STARTS_WITH_IGNORE_CASE - Static variable in class ch.andre601.expressionparser.tokens.DefaultTokens
-
Tokeninstance used for "starts with" (ignoring case) operands (|~). - startsWith(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho's boolean value is true if the String value of the firstToStringExpressionstarts with the String value of the secondToStringExpression. - startsWith(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
-
Returns a
ExpressionTemplatewho's boolean value returns true when the String value of the first ExpressionTemplate starts with the String value of the second ExpressionTemplate. - startsWithIgnoreCase(ToStringExpression, ToStringExpression) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToBooleanExpressionwho's boolean value is true if the String value of the firstToStringExpressionstarts with the String value of the secondToStringExpression. - startsWithIgnoreCase(ExpressionTemplate, ExpressionTemplate) - Static method in class ch.andre601.expressionparser.templates.ExpressionTemplates
-
Returns a
ExpressionTemplatewho'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
- 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
ToDoubleExpressionwho'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
ExpressionTemplatewho'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
-
Tokeninstance used for subtract operands (-). - sum(Collection<ToDoubleExpression>) - Static method in class ch.andre601.expressionparser.expressions.Expressions
-
Returns a
ToDoubleExpressionwho'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
ExpressionTemplatewho'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
ToDoubleExpressioninto aToBooleanExpressionwith 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
ToStringExpressioninto aToBooleanExpressionwith 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
ToBooleanExpressioninto aToDoubleExpressionwith 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
ToStringExpressioninto aToDoubleExpressionwith 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
ToBooleanExpressioninto aToStringExpressionwith its String value being the output of Boolean.toString(expression.evaluate()). - toString(ToDoubleExpression) - Static method in class ch.andre601.expressionparser.Conversions
-
Converts the provided
ToDoubleExpressioninto aToStringExpressionwith 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
All Classes and Interfaces|All Packages
ExpressionParserEngine.Builder.addDefaults()for more clarity.May be removed in a future release.