Uses of Class
ch.andre601.expressionparser.tokens.Token
Packages that use Token
Package
Description
-
Uses of Token in ch.andre601.expressionparser
Methods in ch.andre601.expressionparser that return types with arguments of type TokenMethods in ch.andre601.expressionparser with parameters of type TokenModifier and TypeMethodDescriptionExpressionParserEngine.Builder.addOperator
(Token token, Operator operator) Adds a new Token instance as key with a new Operator instance as value to use by theDefaultExpressionParserEngine
.Constructor parameters in ch.andre601.expressionparser with type arguments of type TokenModifierConstructorDescriptionDefaultExpressionParserEngine
(List<TokenReader> tokenReaders, com.google.common.collect.ImmutableMap<Token, Operator> operators, com.google.common.collect.ImmutableList<ValueReader> valueReaders) Creates a new instance of this class. -
Uses of Token in ch.andre601.expressionparser.expressions
Methods in ch.andre601.expressionparser.expressions that return types with arguments of type Token -
Uses of Token in ch.andre601.expressionparser.parsers
Method parameters in ch.andre601.expressionparser.parsers with type arguments of type TokenModifier and TypeMethodDescriptionExpressionTemplateParser.parse
(List<Token> tokens, ParseWarnCollector collector) Takes a list of Tokens and converts them into aExpressionTemplate
instance.BooleanConstantReader.read
(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Takes the first entry of the provided list of Tokens and returns aConstantExpressionTemplate
using the retrieved Token's boolean value, if it is aBooleanToken
, ornull
.NegatedExpressionReader.read
(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Takes the first entry of the list of Tokens and returns a negated ExpressionTemplate if the retrieved token is the set negation Token, elsenull
.NegatedNumberReader.read
(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Takes the first token of the list of Tokens and returns aExpressionTemplate
who's number value is negated, if the retrieved Token is the set negation Token, ornull
.NumberConstantReader.read
(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Takes the first token of the list of Tokens and returns aConstantExpressionTemplate
with its double value set from the retrieved Token, if it is aNumberToken
, elsenull
.ParenthesisedExpressionReader.read
(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Takes the first Token from the token list and checks, if it is the set opening parenthesis Token.StringConstantReader.read
(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Takes the first Token in the list of Tokens and returns aConstantExpressionTemplate
whose String value is the one from the retrieved Token, if it is aStringToken
, elsenull
.abstract ExpressionTemplate
ValueReader.read
(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Method called by theExpressionTemplateParser
to convert a List ofToken
into a singleExpressionTemplate
.Constructors in ch.andre601.expressionparser.parsers with parameters of type TokenModifierConstructorDescriptionNegatedExpressionReader
(Token negationToken) Sets theToken
that this ValueReader should look for.NegatedNumberReader
(Token negationToken) Sets theToken
that this ValueReader should look for.ParenthesisedExpressionReader
(Token openingParenthesis, Token closingParenthesis) Sets the tokens to look for when parsing.Constructor parameters in ch.andre601.expressionparser.parsers with type arguments of type TokenModifierConstructorDescriptionExpressionTemplateParser
(com.google.common.collect.ImmutableMap<Token, Operator> operators, com.google.common.collect.ImmutableList<ValueReader> valueReaders) Creates a new instance of this class which uses the provided Map of Tokens and their Operators and also the provided list of ValueReaders. -
Uses of Token in ch.andre601.expressionparser.tokens
Subclasses of Token in ch.andre601.expressionparser.tokensModifier and TypeClassDescriptionclass
Token instance representing and holding a boolean value.class
Token instance representing a number (double).class
Token instance representing a String value.Fields in ch.andre601.expressionparser.tokens declared as TokenModifier and TypeFieldDescriptionstatic final Token
DefaultTokens.ADD
Token
instance used for add operands (+
).static final Token
DefaultTokens.AND
static final Token
DefaultTokens.CLOSING_PARENTHESIS
Token
instance used for closing parenthesis ()
).static final Token
DefaultTokens.CONCAT_STRING
Token
instance used for concatenating character (.
).static final Token
DefaultTokens.CONTAINS
Token
instance used for contains operands (<_
).static final Token
DefaultTokens.CONTAINS_IGNORE_CASE
Token
instance used for contains (ignoring case) operands (<~
).static final Token
DefaultTokens.DIVIDE
Token
instance used for divide operands (/
).static final Token
DefaultTokens.ENDS_WITH
Token
instance used for "ends with" operands (-|
).static final Token
DefaultTokens.ENDS_WITH_IGNORE_CASE
Token
instance used for "ends with" (ignoring case) operands (~|
).static final Token
DefaultTokens.EQUAL
static final Token
DefaultTokens.EQUAL_IGNORE_CASE
static final Token
DefaultTokens.GREATER_OR_EQUAL_THAN
Token
instance used for "greater or equal to" operands (>=
).static final Token
DefaultTokens.GREATER_THAN
Token
instance used for "greater than" operands (>
).static final Token
DefaultTokens.LESS_OR_EQUAL_THAN
Token
instance used for "less or equal than" operands (<=
).static final Token
DefaultTokens.LESS_THAN
Token
instance used for "less than" operands (<
).static final Token
DefaultTokens.MULTIPLY
Token
instance used for multiply operands (*
).static final Token
DefaultTokens.NEGATION
Token
instance used for negation characters (!
).static final Token
DefaultTokens.NOT_EQUAL
Token
instance used for not-equals operands (!=
).static final Token
DefaultTokens.NOT_EQUAL_IGNORE_CASE
Token
instance used for not-equals (ignoring case) operands (!~
).static final Token
DefaultTokens.OPENING_PARENTHESIS
Token
instance used for opening parenthesis ((
).static final Token
DefaultTokens.OR
static final Token
DefaultTokens.STARTS_WITH
Token
instance used for "starts with" operands (|-
).static final Token
DefaultTokens.STARTS_WITH_IGNORE_CASE
Token
instance used for "starts with" (ignoring case) operands (|~
).static final Token
DefaultTokens.SUBTRACT
Token
instance used for subtract operands (-
). -
Uses of Token in ch.andre601.expressionparser.tokens.readers
Methods in ch.andre601.expressionparser.tokens.readers that return TokenModifier and TypeMethodDescriptionNonQuotedLiteralTokenReader.read
(String text, ParsePosition position, ParseWarnCollector collector) Iterates through the provided String until it finds a Whitespace Character at which point it returns a newStringToken
whose value is the retrieved String up until the whitespace character.NumberTokenReader.read
(String text, ParsePosition position, ParseWarnCollector collector) Takes the provided Text and parses the content from its current position using aNumberFormat
instance.PatternTokenReader.read
(String text, ParsePosition position, ParseWarnCollector collector) Makes a region matches check to see if the String at the current position matches the provided pattern String.QuotedLiteralTokenReader.read
(String text, ParsePosition position, ParseWarnCollector collector) 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.abstract Token
TokenReader.read
(String text, ParsePosition position, ParseWarnCollector collector) Abstract method that is called by the ExpressionparserEngine to turn the provided String into a token.Constructors in ch.andre601.expressionparser.tokens.readers with parameters of type TokenModifierConstructorDescriptionPatternTokenReader
(Token token, String pattern) Creates a new PatternTokenReader instance with the provided Token instance being used for the provided Pattern String.PatternTokenReader
(Token token, String pattern, boolean ignoreCase) Creates a new PatternTokenReader instance with the provided Token instance being used for the provided Pattern String.