Package | Description |
---|---|
com.nobigsoftware.dfalex |
Modifier and Type | Field and Description |
---|---|
static Pattern |
Pattern.ALL_STRINGS
Pattern that matches all strings
|
static Pattern |
Pattern.BLOCK_COMMENT
Typical Java/C/CSS - style block comment
|
static Pattern |
Pattern.DECIMAL
A
FLOAT_DECIMAL or an INTEGER . |
static Pattern |
Pattern.DIGITS
Pattern that matches one or more decimal digits
|
static Pattern |
Pattern.DQ_STRING
double-quoted string with backslash escapes and no carriage returns or newlines
|
static Pattern |
Pattern.EMPTY
Pattern that matches only the empty string
|
static Pattern |
Pattern.FLOAT_DECIMAL
A decimal number that includes a decimal point and/or scientific exponent, and does NOT match
INTEGER . |
static Pattern |
Pattern.HEXDIGITS
Pattern that matches one or more hexadecimal digits
|
static Pattern |
Pattern.INTEGER
Pattern that matches an optional sign, followed by one or more decimal digits
|
static Pattern |
Pattern.LINE_COMMENT
Typical Java/C++ - style line comment
note that this doesn't include the newline.
|
static Pattern |
Pattern.SIMPLE_DECIMAL
A pattern that matches an
INTEGER , optionally followed by a '.' and zero or more digits |
static Pattern |
Pattern.SQ_STRING
single-quoted string with backslash escapes and no carriage returns or newlines
|
static Pattern |
Pattern.STRING
single or double-quoted string with backslash escapes and no carriage returns or newlines
|
Modifier and Type | Method and Description |
---|---|
static Pattern |
Pattern.anyCharIn(java.lang.String chars)
Create a pattern that matches any single character from the given string
|
static Pattern |
Pattern.anyOf(java.util.Collection<? extends Matchable> patterns)
Create a pattern that matches any of the given patterns
|
static Pattern |
Pattern.anyOf(Matchable... patterns)
Create a pattern that matches any of the given patterns
|
static Pattern |
Pattern.anyOf(java.lang.String p0,
java.lang.String p1,
java.lang.String... strings)
Create a pattern that matches any of the given strings
|
static Pattern |
Pattern.anyOfI(java.lang.String p0,
java.lang.String p1,
java.lang.String... strings)
Create a pattern that matches any of the given strings, case independent
|
static Pattern |
Pattern.match(Matchable tomatch)
|
static Pattern |
Pattern.match(java.lang.String tomatch)
Create a pattern that exactly matches a single string, case-dependent
|
static Pattern |
Pattern.matchI(java.lang.String tomatch)
Create a pattern that exactly matches a single string, case-independent
|
static Pattern |
Pattern.maybe(Matchable pat)
Create a pattern that matches a given pattern or the empty string
|
static Pattern |
Pattern.maybe(java.lang.String str)
Create a pattern that a particular string, or the empty string, case dependent
|
static Pattern |
Pattern.maybeI(java.lang.String str)
Create a pattern that a particular string, or the empty string, case independent
|
static Pattern |
Pattern.maybeRepeat(Matchable pat)
Create a pattern that matches zero or more occurrences of a given pattern
|
static Pattern |
Pattern.maybeRepeat(java.lang.String str)
Create a pattern that matches zero or more occurrences of a particular string, case dependent
|
static Pattern |
Pattern.maybeRepeatI(java.lang.String str)
Create a pattern that matches zero or more occurrences of a particular string, case dependent
|
static Pattern |
Pattern.regex(java.lang.String regex)
Parse the given regular expression into a pattern.
|
static Pattern |
Pattern.regexI(java.lang.String regex)
Parse the given regular expression into a pattern, case independent
|
static Pattern |
Pattern.repeat(Matchable pat)
Create a pattern that matches one or more occurrences of a given pattern
|
static Pattern |
Pattern.repeat(java.lang.String str)
Create a pattern that matches one or more occurrences of a particular string, case dependent
|
static Pattern |
Pattern.repeatI(java.lang.String str)
Create a pattern that matches one or more occurrences of a particular string, case independent
|
Pattern |
Pattern.then(Matchable tocat)
Create a pattern that matches strings from this pattern, followed by strings from the given pattern
|
Pattern |
Pattern.then(java.lang.String str)
Create a pattern that matches strings from this pattern, followed by a given string, case dependent
|
Pattern |
Pattern.thenI(java.lang.String str)
Create a pattern that matches strings from this pattern, followed by a given string, case independent
|
Pattern |
Pattern.thenMaybe(Matchable pat)
Create a pattern that matches strings from this pattern, maybe followed by a
match of the given pattern
|
Pattern |
Pattern.thenMaybe(java.lang.String str)
Create a pattern that matches strings from this pattern, maybe followed by a
match of the given string, case dependent
|
Pattern |
Pattern.thenMaybeI(java.lang.String str)
Create a pattern that matches strings from this pattern, maybe followed by a
match of the given string, case independent
|
Pattern |
Pattern.thenMaybeRepeat(Matchable pat)
Create a pattern that matches strings from this pattern, followed by zero
or more occurrences of a given pattern
|
Pattern |
Pattern.thenMaybeRepeat(java.lang.String str)
Create a pattern that matches strings from this pattern, followed by zero
or more occurrences of a given string, case dependent
|
Pattern |
Pattern.thenMaybeRepeatI(java.lang.String str)
Create a pattern that matches strings from this pattern, followed by zero
or more occurrences of a given string, case independent
|
Pattern |
Pattern.thenRegex(java.lang.String regexStr)
Create a pattern that matches strings from this pattern,
followed by strings that match a regular expression, case dependent
|
Pattern |
Pattern.thenRegexI(java.lang.String regexStr)
Create a pattern that matches strings from this pattern,
followed by strings that match a regular expression, case independent
|
Pattern |
Pattern.thenRepeat(Matchable pat)
Create a pattern that matches strings from this pattern, followed by one
or more occurrences of a given pattern
|
Pattern |
Pattern.thenRepeat(java.lang.String str)
Create a pattern that matches strings from this pattern, followed by one
or more occurrences of a given string, case dependent
|
Pattern |
Pattern.thenRepeatI(java.lang.String str)
Create a pattern that matches strings from this pattern, followed by one
or more occurrences of a given string, case independent
|