Package gnu.regexp
Class REToken
- java.lang.Object
-
- gnu.regexp.REToken
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
RE,RETokenAny,RETokenBackRef,RETokenChar,RETokenEnd,RETokenEndSub,RETokenLookAhead,RETokenOneOf,RETokenPOSIX,RETokenRange,RETokenRepeated,RETokenStart,RETokenWordBoundary
abstract class REToken extends java.lang.Object implements java.io.Serializable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedREToken(int subIndex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) booleanchain(REToken token)(package private) abstract voiddump(java.lang.StringBuffer os)(package private) voiddumpAll(java.lang.StringBuffer os)(package private) intgetMinimumLength()(package private) abstract booleanmatch(CharIndexed input, REMatch mymatch)Returns true if the match succeeded, false if it failed.protected booleannext(CharIndexed input, REMatch mymatch)Returns true if the rest of the tokens match, false if they fail.(package private) voidsetUncle(REToken anUncle)
-
-
-
Method Detail
-
getMinimumLength
int getMinimumLength()
-
setUncle
void setUncle(REToken anUncle)
-
match
abstract boolean match(CharIndexed input, REMatch mymatch)
Returns true if the match succeeded, false if it failed.
-
next
protected boolean next(CharIndexed input, REMatch mymatch)
Returns true if the rest of the tokens match, false if they fail.
-
chain
boolean chain(REToken token)
-
dump
abstract void dump(java.lang.StringBuffer os)
-
dumpAll
void dumpAll(java.lang.StringBuffer os)
-
-