org.egothor.parser.filter
Class Grammer

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

public class Grammer
extends Filter

This class is really grammer - it produces N-grams. The filter has an inner context thus it cannot be shared in a filtering chain.

Author:
Leo Galambos

Field Summary
 
Fields inherited from class org.egothor.core.Filter
prev
 
Constructor Summary
Grammer(Sequence<Token> arg0)
          Constructor for the Grammer object.
 
Method Summary
 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

Grammer

public Grammer(Sequence<Token> arg0)
Constructor for the Grammer object. Calling this constructor merely instantiates an object of the superclass.

Parameters:
arg0 - Description of the Parameter
Method Detail

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:
org.egothor.core.Tokenizer#next()