Class StarRE
java.lang.Object
easyIO.regexp.RegExp
easyIO.regexp.StarRE
Kleene Star RE (r*)
-
Nested Class Summary
Nested classes/interfaces inherited from class RegExp
RegExp.DerivTerm -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendString(StringBuilder b, int precedence) Append a string representation of the regular expression to the builder b.booleanbooleanWhether this RE contains any capture, started or not.inthashCode()static RegExpA canonical regular expression equivalent to r+ (Unix notation for 1 or more consecutive matches)static RegExpA canonical regular expression equivalent to r*Methods inherited from class RegExp
derivative, isVoid, nullable, nullOps, termDerivative, toString
-
Method Details
-
star
-
oneOrMore
-
hasCaptures
public boolean hasCaptures()Description copied from class:RegExpWhether this RE contains any capture, started or not.- Overrides:
hasCapturesin classRegExp
-
appendString
Description copied from class:RegExpAppend a string representation of the regular expression to the builder b. The precedence of the surrounding context is provided so that necessary parentheses can be added. Precedences: 0 = top level 1 = | 2 = concat 3 = star- Specified by:
appendStringin classRegExp
-
equals
-
hashCode
-