Package hydra.query
Class RegexQuantifier
- java.lang.Object
-
- hydra.query.RegexQuantifier
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RegexQuantifier>
- Direct Known Subclasses:
RegexQuantifier.AtLeast,RegexQuantifier.Exactly,RegexQuantifier.One,RegexQuantifier.OneOrMore,RegexQuantifier.Range,RegexQuantifier.ZeroOrMore,RegexQuantifier.ZeroOrOne
public abstract class RegexQuantifier extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<RegexQuantifier>
A regular expression quantifier- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegexQuantifier.AtLeastThe {n,} quantifier; matches at least n occurrencesstatic classRegexQuantifier.ExactlyThe {n} quantifier; matches exactly n occurrencesstatic classRegexQuantifier.OneNo quantifier; matches a single occurrencestatic classRegexQuantifier.OneOrMoreThe + quantifier; matches one or more occurrencesstatic interfaceRegexQuantifier.PartialVisitor<R>Partial visitor overRegexQuantifierwith a defaultRegexQuantifier.PartialVisitor.otherwise(hydra.query.RegexQuantifier)branch.static classRegexQuantifier.RangeThe {n, m} quantifier; matches between n and m (inclusive) occurrencesstatic interfaceRegexQuantifier.Visitor<R>Visitor overRegexQuantifier.static classRegexQuantifier.ZeroOrMoreThe * quantifier; matches any number of occurrencesstatic classRegexQuantifier.ZeroOrOneThe ? quanifier; matches zero or one occurrence
-
Field Summary
Fields Modifier and Type Field Description static NameAT_LEASTName of thehydra.query.RegexQuantifier.atLeastfield.static NameEXACTLYName of thehydra.query.RegexQuantifier.exactlyfield.static NameONEName of thehydra.query.RegexQuantifier.onefield.static NameONE_OR_MOREName of thehydra.query.RegexQuantifier.oneOrMorefield.static NameRANGEName of thehydra.query.RegexQuantifier.rangefield.static NameTYPE_Name of thehydra.query.RegexQuantifiertype.static NameZERO_OR_MOREName of thehydra.query.RegexQuantifier.zeroOrMorefield.static NameZERO_OR_ONEName of thehydra.query.RegexQuantifier.zeroOrOnefield.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> Raccept(RegexQuantifier.Visitor<R> visitor)Dispatch tovisitor.abstract inthydraOrdinal()
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.query.RegexQuantifiertype.
-
ONE
public static final Name ONE
Name of thehydra.query.RegexQuantifier.onefield.
-
ZERO_OR_ONE
public static final Name ZERO_OR_ONE
Name of thehydra.query.RegexQuantifier.zeroOrOnefield.
-
ZERO_OR_MORE
public static final Name ZERO_OR_MORE
Name of thehydra.query.RegexQuantifier.zeroOrMorefield.
-
ONE_OR_MORE
public static final Name ONE_OR_MORE
Name of thehydra.query.RegexQuantifier.oneOrMorefield.
-
EXACTLY
public static final Name EXACTLY
Name of thehydra.query.RegexQuantifier.exactlyfield.
-
AT_LEAST
public static final Name AT_LEAST
Name of thehydra.query.RegexQuantifier.atLeastfield.
-
RANGE
public static final Name RANGE
Name of thehydra.query.RegexQuantifier.rangefield.
-
-
Method Detail
-
accept
public abstract <R> R accept(RegexQuantifier.Visitor<R> visitor)
Dispatch tovisitor.
-
hydraOrdinal
public abstract int hydraOrdinal()
-
-