public final class CharLiteral extends Literal implements Quantifiable
Literal.literal(char)
,
Serialized FormModifier and Type | Field and Description |
---|---|
char |
unescapedChar |
NEEDS_ESCAPE, specialEscapes
Modifier and Type | Method and Description |
---|---|
Quantified.AnyTimes |
anyTimes()
Returns an expression that matches the receiver repeated any number
of times, using greedy matching.
|
Quantified.AnyTimes |
anyTimes(Quantified.Mode mode)
Returns an expression that matches the receiver repeated any number
of times, using the specified matching mode.
|
Quantified.AnyTimes |
anyTimesPossessively()
Deprecated.
|
Quantified.AnyTimes |
anyTimesReluctantly()
Deprecated.
|
Quantified.RepeatRange |
atLeast(int n)
Returns an expression that matches the receiver repeated at least the
specified minimum number of times, using greedy matching.
|
Quantified.RepeatRange |
atLeast(int n,
Quantified.Mode mode)
Returns an expression that matches the receiver repeated at least the
specified minimum number of times, using the specified matching mode.
|
Quantified.AtLeastOnce |
atLeastOnce()
Returns an expression that matches the receiver repeated at least
once, using greedy matching.
|
Quantified.AtLeastOnce |
atLeastOnce(Quantified.Mode mode)
Returns an expression that matches the receiver repeated at least
once, using the specified matching mode.
|
Quantified.AtLeastOnce |
atLeastOncePossessively()
Deprecated.
|
Quantified.AtLeastOnce |
atLeastOnceReluctantly()
Deprecated.
|
Quantified.RepeatRange |
atLeastPossessively(int n)
Deprecated.
|
Quantified.RepeatRange |
atLeastReluctantly(int n)
Deprecated.
|
boolean |
equals(Object obj) |
int |
hashCode() |
Quantified.Optional |
optional()
Returns an expression that matches the receiver appearing once or not
at all, using greedy matching.
|
Quantified.Optional |
optional(Quantified.Mode mode)
Returns an expression that matches the receiver appearing once or not
at all, using the specified matching mode.
|
Quantified.Optional |
optionalPossessively()
Deprecated.
|
Quantified.Optional |
optionalReluctantly()
Deprecated.
|
Quantified.RepeatExactly |
repeat(int n)
Returns an expression that matches the receiver repeated the specified
number of times, using greedy matching.
|
Quantified.RepeatRange |
repeat(int min,
int max)
Returns an expression that matches the receiver repeated a number of
times within the specified range, using greedy matching.
|
Quantified.RepeatRange |
repeat(int min,
int max,
Quantified.Mode mode)
Returns an expression that matches the receiver repeated a number of
times within the specified range, using the specified matching mode.
|
Quantified.RepeatExactly |
repeat(int n,
Quantified.Mode mode)
Returns an expression that matches the receiver repeated the specified
number of times, using the specified matching mode.
|
Quantified.RepeatExactly |
repeatPossessively(int n)
Deprecated.
|
Quantified.RepeatRange |
repeatPossessively(int min,
int max)
Deprecated.
|
Quantified.RepeatExactly |
repeatReluctantly(int n)
Deprecated.
|
Quantified.RepeatRange |
repeatReluctantly(int min,
int max)
Deprecated.
|
String |
unescaped()
Returns the original unescaped string (or character as a string)
matched by this expression.
|
boundedLength, escape, escapeChar, escaped, expression, literal, literal, possiblyZeroLength, repetitionInvalidatesBounds
andThen, andThen, then, then
or, or
toPattern, toString
boundedLength, expression, possiblyZeroLength, repetitionInvalidatesBounds, toPattern
public final Quantified.AnyTimes anyTimes(Quantified.Mode mode)
Quantifiable
anyTimes
in interface Quantifiable
public final Quantified.AnyTimes anyTimes()
Quantifiable
anyTimes
in interface Quantifiable
@Deprecated public final Quantified.AnyTimes anyTimesReluctantly()
Quantifiable
anyTimesReluctantly
in interface Quantifiable
@Deprecated public final Quantified.AnyTimes anyTimesPossessively()
Quantifiable
anyTimesPossessively
in interface Quantifiable
public final Quantified.AtLeastOnce atLeastOnce(Quantified.Mode mode)
Quantifiable
atLeastOnce
in interface Quantifiable
public final Quantified.AtLeastOnce atLeastOnce()
Quantifiable
atLeastOnce
in interface Quantifiable
@Deprecated public final Quantified.AtLeastOnce atLeastOnceReluctantly()
Quantifiable
atLeastOnceReluctantly
in interface Quantifiable
@Deprecated public final Quantified.AtLeastOnce atLeastOncePossessively()
Quantifiable
atLeastOncePossessively
in interface Quantifiable
public final Quantified.Optional optional(Quantified.Mode mode)
Quantifiable
optional
in interface Quantifiable
public final Quantified.Optional optional()
Quantifiable
optional
in interface Quantifiable
@Deprecated public final Quantified.Optional optionalReluctantly()
Quantifiable
optionalReluctantly
in interface Quantifiable
@Deprecated public final Quantified.Optional optionalPossessively()
Quantifiable
optionalPossessively
in interface Quantifiable
public final Quantified.RepeatExactly repeat(int n, Quantified.Mode mode)
Quantifiable
repeat
in interface Quantifiable
n
- the exact number of times the pattern must be repeated for the
quantified expression to match; must be >= 0.mode
- the matching mode to use; must not be null.public final Quantified.RepeatExactly repeat(int n)
Quantifiable
repeat
in interface Quantifiable
n
- the exact number of times the pattern must be repeated for the
quantified expression to match; must be >= 0.@Deprecated public final Quantified.RepeatExactly repeatReluctantly(int n)
Quantifiable
repeatReluctantly
in interface Quantifiable
n
- the exact number of times the pattern must be repeated for the
quantified expression to match; must be >= 0.@Deprecated public final Quantified.RepeatExactly repeatPossessively(int n)
Quantifiable
repeatPossessively
in interface Quantifiable
n
- the exact number of times the pattern must be repeated for the
quantified expression to match; must be >= 0.public final Quantified.RepeatRange repeat(int min, int max, Quantified.Mode mode)
Quantifiable
repeat
in interface Quantifiable
min
- the minimum number of times that the pattern may be repeated;
must be >= 0.max
- the maximum number of times that the pattern may be repeated;
must be >= min.mode
- the matching mode to use; must not be null.public final Quantified.RepeatRange repeat(int min, int max)
Quantifiable
repeat
in interface Quantifiable
min
- the minimum number of times that the pattern may be repeated;
must be >= 0.max
- the maximum number of times that the pattern may be repeated;
must be >= min.@Deprecated public final Quantified.RepeatRange repeatReluctantly(int min, int max)
Quantifiable
repeatReluctantly
in interface Quantifiable
min
- the minimum number of times that the pattern may be repeated;
must be >= 0.max
- the maximum number of times that the pattern may be repeated;
must be > 0.@Deprecated public final Quantified.RepeatRange repeatPossessively(int min, int max)
Quantifiable
repeatPossessively
in interface Quantifiable
min
- the minimum number of times that the pattern may be repeated;
must be >= 0.max
- the maximum number of times that the pattern may be repeated;
must be > 0.public final Quantified.RepeatRange atLeast(int n, Quantified.Mode mode)
Quantifiable
atLeast
in interface Quantifiable
n
- the minimum number of times that the pattern may be repeated;
must be be >= 0;mode
- the matching mode to use; must not be null.public final Quantified.RepeatRange atLeast(int n)
Quantifiable
atLeast
in interface Quantifiable
n
- the minimum number of times that the pattern may be repeated;
must be be >= 0;@Deprecated public final Quantified.RepeatRange atLeastReluctantly(int n)
Quantifiable
atLeastReluctantly
in interface Quantifiable
n
- the minimum number of times that the pattern may be repeated;
must be be >= 0;@Deprecated public final Quantified.RepeatRange atLeastPossessively(int n)
Quantifiable
atLeastPossessively
in interface Quantifiable
n
- the minimum number of times that the pattern may be repeated;
must be be >= 0;public String unescaped()
Literal
Copyright © 2014 Richard W. Eggert II. All Rights Reserved.