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
Class WhiteSpaceTokenMatcher

    java.lang.Object
      com.singularsys.jep.configurableparser.matchers.RegExpTokenMatcher
          com.singularsys.jep.configurableparser.matchers.WhiteSpaceTokenMatcher

All Implemented Interfaces:
  TokenBuilder, TokenMatcher

    public class WhiteSpaceTokenMatcher

extends RegExpTokenMatcher

Matches whitespace.

Constructor Summary
`WhiteSpaceTokenMatcher(java.util.regex.Pattern pattern)`
`WhiteSpaceTokenMatcher(java.lang.String regex)`

Method Summary
`Token` | `buildToken(java.lang.String s)` Builds a token following a successful match.
`static WhiteSpaceTokenMatcher` | `defaultWhiteSpaceTokenMatcher()` Matches
`void` | `init(Jep j)` Initialize the matcher when the Jep instance is known.

Methods inherited from class com.singularsys.jep.configurableparser.matchers.RegExpTokenMatcher
`match`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### WhiteSpaceTokenMatcher

    public WhiteSpaceTokenMatcher(java.lang.String regex)

### WhiteSpaceTokenMatcher

    public WhiteSpaceTokenMatcher(java.util.regex.Pattern pattern)

Method Detail

### buildToken

    public Token buildToken(java.lang.String s)

  Description copied from class: `RegExpTokenMatcher`
  Builds a token following a successful match.

  Specified by:
    `buildToken` in interface `TokenBuilder`
  Specified by:
    `buildToken` in class `RegExpTokenMatcher`
  Parameters:
    `s` - String representing the completed matched token
  Returns:
    the appropriate type of token.

### defaultWhiteSpaceTokenMatcher

    public static WhiteSpaceTokenMatcher defaultWhiteSpaceTokenMatcher()

  Matches

  Returns:
    a new TokenMatcher for white space tokens

### init

    public void init(Jep j)

  Description copied from interface: `TokenMatcher`
  Initialize the matcher when the Jep instance is known.

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