Uses of Interface
com.gengoai.Tag
-
Packages that use Tag Package Description com.gengoai A set of utilities, frameworks, and tools to speed up and ease programming in Java.com.gengoai.config Configuration based on json-like syntax that integrates with command line parser, applications, and loggingcom.gengoai.parsing -
-
Uses of Tag in com.gengoai
Classes in com.gengoai that implement Tag Modifier and Type Class Description class
EnumValue<T extends EnumValue<T>>
A enum like object that can have elements created at runtime as needed.class
HierarchicalEnumValue<T extends HierarchicalEnumValue<T>>
A enum like object that can have elements created at runtime as needed and which have a parent associated with them.class
StringTag
A tag which is represented as a string.Methods in com.gengoai that return Tag Modifier and Type Method Description default Tag
Tag. parent()
Gets the parent of this tagMethods in com.gengoai with parameters of type Tag Modifier and Type Method Description boolean
EnumValue. isInstance(Tag value)
boolean
HierarchicalEnumValue. isInstance(Tag value)
boolean
StringTag. isInstance(Tag tag)
default boolean
Tag. isInstance(@NonNull Tag tag)
Determines if this tag is an instance of a given tag.default boolean
Tag. isInstance(@NonNull Tag... tags)
Determines if this tag is an instance of any of the given tags. -
Uses of Tag in com.gengoai.config
Classes in com.gengoai.config that implement Tag Modifier and Type Class Description class
ConfigTokenType
-
Uses of Tag in com.gengoai.parsing
Subinterfaces of Tag in com.gengoai.parsing Modifier and Type Interface Description interface
TokenDef
Defines aTag
and pattern representing a terminal token to be lexed.Classes in com.gengoai.parsing that implement Tag Modifier and Type Class Description class
CommonTypes
A enum of common Parser Token Types.Fields in com.gengoai.parsing declared as Tag Modifier and Type Field Description static Tag
TokenStream. EOF
Special tag signaling the End-of-File (i.e.Methods in com.gengoai.parsing that return Tag Modifier and Type Method Description Tag
BaseExpression. getType()
Tag
Expression. getType()
Gets the tag associated with the ExpressionTag
ParserToken. getType()
Gets the token's associated typeTag
TokenExpression. getType()
Methods in com.gengoai.parsing with parameters of type Tag Modifier and Type Method Description protected <E extends Expression>
voidEvaluator. $(@NonNull Class<E> expressionClass, @NonNull Tag type, @NonNull CheckedFunction<E,? extends O> function)
Adds a switch statement where the condition is that the expression is of typeexpressionClass
and the expressions's token type is an instance oftype
.default ParserToken
TokenStream. consume(Tag target)
Consume a token from the stream expecting the tag to be an instance of the given target type.Optional<PostfixHandler>
Grammar. getPostfixHandler(Tag tag)
Gets the postfix handler associated with the givenTag
.Optional<PrefixHandler>
Grammar. getPrefixHandler(Tag tag)
Gets the prefix handler associated with the givenTag
.static PrefixHandler
ListExpression. handler(Tag startOfListTag, Tag endOfListTag, Tag separatorTag, String startOfListStr, String endOfListStr, String separatorStr)
Handler prefix handler.boolean
Grammar. isIgnored(Tag tag)
Checks if the given tag should be ignored during parsingboolean
CommonTypes. isInstance(Tag tag)
default boolean
Expression. isInstance(Tag... tags)
Checks if this Expression's tag is an instance of any of the given tagsdefault boolean
Expression. isInstance(Class<? extends Expression> tClass, Tag type)
Checks if this Expression is an instance of the given Expression type and the given Tag typeboolean
ParserToken. isInstance(Tag... tags)
Checks if the token's tag is an instance of one of the given tags<T extends Expression>
List<T>Parser. parseExpressionList(Tag endOfList, Tag separator)
Parses a list of tokens ending with theendOfList
tag and values separated using theseparator
tag.<T extends Expression>
List<T>Parser. parseExpressionList(Tag startOfList, Tag endOfList, Tag separator)
Parses a list of tokens ending with theendOfList
tag and values separated using theseparator
tag.Grammar
Grammar. postfix(Tag tag, PostfixHandler handler)
Grammar
Grammar. postfix(Tag tag, PostfixHandler handler, int precedence)
Registers aPostfixHandler
with the given precedence for the givenTag
<E extends Expression>
GrammarGrammar. postfix(Tag tag, PostfixHandler handler, int precedence, SerializablePredicate<E> validator)
Registers aPostfixHandler
with the given precedence for the givenTag
int
Grammar. precedenceOf(Tag tag)
Determines the precedence of the given tagGrammar
Grammar. prefix(Tag tag, PrefixHandler handler)
Registers aPrefixHandler
for the givenTag
<E extends Expression>
GrammarGrammar. prefix(Tag tag, PrefixHandler handler, SerializablePredicate<E> validator)
Registers aPrefixHandler
for the givenTag
Grammar
Grammar. skip(Tag tag)
Registers the givenTag
as one which should be skipped during parsing.Constructors in com.gengoai.parsing with parameters of type Tag Constructor Description BaseExpression(Tag tag)
Instantiates a new BaseExpressionListExpression(Tag type, Collection<Expression> expressions, String separator, String startOfList, String endOfList)
Instantiates a new List expression.ParserToken(Tag type, String text, int start)
Instantiates a new Parser token.ParserToken(Tag type, String text, int start, int end)
Instantiates a new Parser token.ParserToken(Tag type, String text, int start, int end, String[] variables)
Instantiates a new Parser token.ValueExpression(Tag type, Object value)
Instantiates a new Value expression.
-