Package no.acntech.kollectiveq
Object Filter.Companion
-
- All Implemented Interfaces:
public class Filter.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final Set<Character>ESCAPED_REGULAR_CHARSprivate final Set<Character>ESCAPED_WILDCARD_CHARSpublic final static Filter.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final StringresolveEscapes(String input)Resolves escape sequences in a given string. final Filterof(String input, Boolean trace)Parses the input string using a lexer and parser, constructs a condition tree using a visitor, and returns a Filter object. final Set<Character>getESCAPED_REGULAR_CHARS()final Set<Character>getESCAPED_WILDCARD_CHARS()-
-
Method Detail
-
resolveEscapes
final String resolveEscapes(String input)
Resolves escape sequences in a given string.
- Parameters:
input- the string to resolve escape sequences in- Returns:
the string with resolved escape sequences
-
of
final Filter of(String input, Boolean trace)
Parses the input string using a lexer and parser, constructs a condition tree using a visitor, and returns a Filter object.
- Parameters:
input- The input string to parse and construct the filter from.trace- If true, enables tracing in the parser.- Returns:
The constructed Filter object.
-
getESCAPED_REGULAR_CHARS
final Set<Character> getESCAPED_REGULAR_CHARS()
-
getESCAPED_WILDCARD_CHARS
final Set<Character> getESCAPED_WILDCARD_CHARS()
-
-
-
-