gnu.regexp

Class REToken

Implemented Interfaces:
Serializable
Known Direct Subclasses:
RE, RETokenAny, RETokenBackRef, RETokenChar, RETokenEnd, RETokenEndSub, RETokenLookAhead, RETokenOneOf, RETokenPOSIX, RETokenRange, RETokenRepeated, RETokenStart, RETokenWordBoundary

(package private) abstract class REToken
extends java.lang.Object
implements Serializable

Field Summary

protected REToken
next
protected int
subIndex
protected REToken
uncle

Constructor Summary

REToken(int subIndex)

Method Summary

(package private) boolean
chain(REToken token)
(package private) void
dump(StringBuffer os)
(package private) void
dumpAll(StringBuffer os)
(package private) int
getMinimumLength()
(package private) 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)

Field Details

next

protected REToken next


subIndex

protected int subIndex


uncle

protected REToken uncle

Constructor Details

REToken

protected REToken(int subIndex)

Method Details

chain

(package private)  boolean chain(REToken token)


dump

(package private)  void dump(StringBuffer os)


dumpAll

(package private)  void dumpAll(StringBuffer os)


getMinimumLength

(package private)  int getMinimumLength()


match

(package private)  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.


setUncle

(package private)  void setUncle(REToken anUncle)