gnu.regexp

Class REToken

abstract class REToken extends Object implements Serializable

Field Summary
protected RETokennext
protected intsubIndex
protected RETokenuncle
Constructor Summary
protected REToken(int subIndex)
Method Summary
booleanchain(REToken token)
abstract voiddump(StringBuffer os)
voiddumpAll(StringBuffer os)
intgetMinimumLength()
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.
voidsetUncle(REToken anUncle)

Field Detail

protected REToken next

subIndex

protected int subIndex

uncle

protected REToken uncle

Constructor Detail

REToken

protected REToken(int subIndex)

Method Detail

chain

boolean chain(REToken token)

dump

abstract void dump(StringBuffer os)

dumpAll

void dumpAll(StringBuffer os)

getMinimumLength

int getMinimumLength()

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.

setUncle

void setUncle(REToken anUncle)