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 protected
REToken(int subIndex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) boolean
chain(REToken token)
(package private) abstract void
dump(java.lang.StringBuffer os)
(package private) void
dumpAll(java.lang.StringBuffer os)
(package private) int
getMinimumLength()
(package private) abstract boolean
match(CharIndexed input, REMatch mymatch)
Returns true if the match succeeded, false if it failed.protected boolean
next(CharIndexed input, REMatch mymatch)
Returns true if the rest of the tokens match, false if they fail.(package private) void
setUncle(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)
-
-