Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.singularsys.jep.configurableparser.matchers
Interface TokenMatcher

All Superinterfaces:
  java.io.Serializable

All Known Subinterfaces:
  TokenBuilder

All Known Implementing Classes:
  CommentTokenMatcher, IdentifierTokenMatcher, MultiLineMatcher, MultiLineToken, NumberTokenMatcher, OperatorTokenMatcher, RegExpTokenMatcher, StringTokenMatcher, SymbolTokenMatcher, TerminatorTokenMatcher, WhiteSpaceTokenMatcher

    public interface TokenMatcher

extends java.io.Serializable

Interface defining classes which match tokens

Author:
  Richard Morris
See Also:
  `Token`

Method Summary
`void` | `init(Jep j)` Initialize the matcher when the Jep instance is known.
`Token` | `match(java.lang.String s)` Attempts to match the start of the string.

Method Detail

### match

    Token match(java.lang.String s)

  Attempts to match the start of the string.

  Parameters:
    `s` - the string to match against
  Returns:
    if successful returns the corresponding token, return null if failed to match

### init

    void init(Jep j)

  Initialize the matcher when the Jep instance is known.

  Parameters:
    `j` -

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 Singular Systems http://www.singularsys.com/jep