Serializable
, Comparable<Quantifier>
public enum Quantifier extends Enum<Quantifier>
Enum Constant | Description |
---|---|
QUANT_ONE |
|
QUANT_PLUS |
|
QUANT_QUESTION |
|
QUANT_STAR |
|
QUANT_ZERO |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allowsEmptySequence() |
|
boolean |
allowsRepeating() |
|
boolean |
isSubQuantifier(Quantifier subQuant) |
|
static Quantifier |
product(Quantifier quant1,
Quantifier quant2) |
|
static String |
toString(Quantifier q) |
|
static Quantifier |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Quantifier[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Quantifier QUANT_ZERO
public static final Quantifier QUANT_ONE
public static final Quantifier QUANT_QUESTION
public static final Quantifier QUANT_STAR
public static final Quantifier QUANT_PLUS
public static Quantifier[] values()
for (Quantifier c : Quantifier.values()) System.out.println(c);
public static Quantifier valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Quantifier product(Quantifier quant1, Quantifier quant2)
public boolean isSubQuantifier(Quantifier subQuant)
public boolean allowsEmptySequence()
public boolean allowsRepeating()
public static String toString(Quantifier q)
Copyright © 2019 Apache Software Foundation. All rights reserved.