Package com.singularsys.jep.configurableparser

# Class WhiteSpaceCommentFilter

java.lang.Object
com.singularsys.jep.configurableparser.WhiteSpaceCommentFilter

All Implemented Interfaces:
  `TokenFilter`, `Serializable`

public class WhiteSpaceCommentFilter extends Object implements TokenFilter, Serializable
A token filter that removes whitespace and comments.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WhiteSpaceCommentFilter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Iterator<Token>`
  `filter(Iterator<Token> tokens)`
  Filters the list of tokens.
  `void`
  `init(Jep j)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### WhiteSpaceCommentFilter

    public WhiteSpaceCommentFilter()

- ## Method Details

  - ### filter

    public Iterator<Token> filter(Iterator<Token> tokens)
    Description copied from interface: `TokenFilter`
    Filters the list of tokens.
    Specified by:
      `filter` in interface `TokenFilter`
    Parameters:
      `tokens` - an iterator for the list of tokens
    Returns:
      a new iterator which just contains the filtered results

  - ### init

    public void init(Jep j)
    Specified by:
      `init` in interface `TokenFilter`