public static final class Token.Quantifier extends Token
Token.BackReference, Token.CharacterClass, Token.Kind, Token.LookAheadAssertionBegin, Token.LookAroundAssertionBegin, Token.LookBehindAssertionBegin, Token.Quantifier| Constructor and Description |
|---|
Quantifier(int min,
int max,
boolean greedy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getMax() |
int |
getMin()
The minimum number of times the quantified element must appear.
|
int |
hashCode() |
boolean |
isGreedy() |
boolean |
isInfiniteLoop() |
JsonObject |
toJson() |
String |
toString() |
createAlternation, createBackReference, createCaptureGroupBegin, createCaret, createCharClass, createCharClass, createDollar, createGroupEnd, createLookAheadAssertionBegin, createLookAheadAssertionBegin, createLookBehindAssertionBegin, createLookBehindAssertionBegin, createNonCaptureGroupBegin, createNonWordBoundary, createQuantifier, createWordBoundary, getSourceSection, setSourceSectionpublic boolean isInfiniteLoop()
public int getMin()
a{1111111111111111111,}). Any number which is larger than the maximum size
of the platform's String data type is considered "virtually infinite".public int getMax()
public boolean isGreedy()
public JsonObject toJson()
toJson in interface JsonConvertibletoJson in class Token