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 |
protected |
REToken(int subIndex)
|
Method Summary |
(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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
next
protected REToken next
uncle
protected REToken uncle
subIndex
protected int subIndex
REToken
protected REToken(int subIndex)
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)