Package gnu.regexp

Class REToken

java.lang.Object
gnu.regexp.REToken
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RE, RETokenAny, RETokenBackRef, RETokenChar, RETokenEnd, RETokenEndSub, RETokenLookAhead, RETokenOneOf, RETokenPOSIX, RETokenRange, RETokenRepeated, RETokenStart, RETokenWordBoundary

abstract class REToken extends Object implements Serializable
  • Field Details

    • next

      protected REToken next
    • uncle

      protected REToken uncle
    • subIndex

      protected int subIndex
  • Constructor Details

    • REToken

      protected REToken(int subIndex)
  • Method Details

    • 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(StringBuffer os)
    • dumpAll

      void dumpAll(StringBuffer os)