public class Quantifier extends Object
Quantifier
.
Each Pattern
can be optional and have a Quantifier.ConsumingStrategy
. Looping and Times
also hava an additional inner consuming strategy that is applied between accepted events in the
pattern.
Modifier and Type | Class and Description |
---|---|
static class |
Quantifier.ConsumingStrategy
Describes strategy for which events are matched in this
Pattern . |
static class |
Quantifier.QuantifierProperty
Properties that a
Quantifier can have. |
static class |
Quantifier.Times
Describe the times this
Pattern can occur. |
Modifier and Type | Method and Description |
---|---|
void |
combinations() |
void |
consecutive() |
boolean |
equals(Object o) |
Quantifier.ConsumingStrategy |
getConsumingStrategy() |
Quantifier.ConsumingStrategy |
getInnerConsumingStrategy() |
void |
greedy() |
int |
hashCode() |
boolean |
hasProperty(Quantifier.QuantifierProperty property) |
static Quantifier |
looping(Quantifier.ConsumingStrategy consumingStrategy) |
static Quantifier |
one(Quantifier.ConsumingStrategy consumingStrategy) |
void |
optional() |
static Quantifier |
times(Quantifier.ConsumingStrategy consumingStrategy) |
String |
toString() |
public static Quantifier one(Quantifier.ConsumingStrategy consumingStrategy)
public static Quantifier looping(Quantifier.ConsumingStrategy consumingStrategy)
public static Quantifier times(Quantifier.ConsumingStrategy consumingStrategy)
public boolean hasProperty(Quantifier.QuantifierProperty property)
public Quantifier.ConsumingStrategy getInnerConsumingStrategy()
public Quantifier.ConsumingStrategy getConsumingStrategy()
public void combinations()
public void consecutive()
public void optional()
public void greedy()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.