org.egothor.parser.filter
Class PunctFilter

java.lang.Object
  extended by org.egothor.core.Filter
      extended by org.egothor.parser.filter.PunctFilter
All Implemented Interfaces:
Sequence<Token>

public final class PunctFilter
extends Filter

Author:
Leo Galambos

Field Summary
 
Fields inherited from class org.egothor.core.Filter
prev
 
Constructor Summary
PunctFilter(Sequence<Token> arg0)
          Constructor for the PunctFilter object
 
Method Summary
 boolean isPunctuation(Token t)
          Test whether a token is a punctuation (mark) or it can be ignored.
 Token next()
          Return the next token.
 
Methods inherited from class org.egothor.core.Filter
action, getPrevTokenizer, setPrevTokenizer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PunctFilter

public PunctFilter(Sequence<Token> arg0)
Constructor for the PunctFilter object

Parameters:
arg0 - Description of the Parameter
Method Detail

isPunctuation

public boolean isPunctuation(Token t)
Test whether a token is a punctuation (mark) or it can be ignored.

Parameters:
t - the Token to check
Returns:
true if it is a mark, false if not

next

public Token next()
Return the next token.

Specified by:
next in interface Sequence<Token>
Overrides:
next in class Filter
Returns:
the next token
See Also:
Filter.next()