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 aExpressionTemplateinstance.BooleanConstantReader.read(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Takes the first entry of the provided list of Tokens and returns aConstantExpressionTemplateusing 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 aExpressionTemplatewho'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 aConstantExpressionTemplatewith 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 aConstantExpressionTemplatewhose String value is the one from the retrieved Token, if it is aStringToken, elsenull.abstract ExpressionTemplateValueReader.read(ExpressionTemplateParser parser, List<Token> tokens, ParseWarnCollector collector) Method called by theExpressionTemplateParserto convert a List ofTokeninto a singleExpressionTemplate.Constructors in ch.andre601.expressionparser.parsers with parameters of type TokenModifierConstructorDescriptionNegatedExpressionReader(Token negationToken) Sets theTokenthat this ValueReader should look for.NegatedNumberReader(Token negationToken) Sets theTokenthat 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 TypeClassDescriptionclassToken instance representing and holding a boolean value.classToken instance representing a number (double).classToken instance representing a String value.Fields in ch.andre601.expressionparser.tokens declared as TokenModifier and TypeFieldDescriptionstatic final TokenDefaultTokens.ADDTokeninstance used for add operands (+).static final TokenDefaultTokens.ANDstatic final TokenDefaultTokens.CLOSING_PARENTHESISTokeninstance used for closing parenthesis ()).static final TokenDefaultTokens.CONCAT_STRINGTokeninstance used for concatenating character (.).static final TokenDefaultTokens.CONTAINSTokeninstance used for contains operands (<_).static final TokenDefaultTokens.CONTAINS_IGNORE_CASETokeninstance used for contains (ignoring case) operands (<~).static final TokenDefaultTokens.DIVIDETokeninstance used for divide operands (/).static final TokenDefaultTokens.ENDS_WITHTokeninstance used for "ends with" operands (-|).static final TokenDefaultTokens.ENDS_WITH_IGNORE_CASETokeninstance used for "ends with" (ignoring case) operands (~|).static final TokenDefaultTokens.EQUALstatic final TokenDefaultTokens.EQUAL_IGNORE_CASEstatic final TokenDefaultTokens.GREATER_OR_EQUAL_THANTokeninstance used for "greater or equal to" operands (>=).static final TokenDefaultTokens.GREATER_THANTokeninstance used for "greater than" operands (>).static final TokenDefaultTokens.LESS_OR_EQUAL_THANTokeninstance used for "less or equal than" operands (<=).static final TokenDefaultTokens.LESS_THANTokeninstance used for "less than" operands (<).static final TokenDefaultTokens.MULTIPLYTokeninstance used for multiply operands (*).static final TokenDefaultTokens.NEGATIONTokeninstance used for negation characters (!).static final TokenDefaultTokens.NOT_EQUALTokeninstance used for not-equals operands (!=).static final TokenDefaultTokens.NOT_EQUAL_IGNORE_CASETokeninstance used for not-equals (ignoring case) operands (!~).static final TokenDefaultTokens.OPENING_PARENTHESISTokeninstance used for opening parenthesis (().static final TokenDefaultTokens.ORstatic final TokenDefaultTokens.STARTS_WITHTokeninstance used for "starts with" operands (|-).static final TokenDefaultTokens.STARTS_WITH_IGNORE_CASETokeninstance used for "starts with" (ignoring case) operands (|~).static final TokenDefaultTokens.SUBTRACTTokeninstance 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 newStringTokenwhose 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 aNumberFormatinstance.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 TokenTokenReader.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.