com.sun.labs.minion.pipeline
Class DropNumbersStage

java.lang.Object
  extended by com.sun.labs.minion.pipeline.StageAdapter
      extended by com.sun.labs.minion.pipeline.DropNumbersStage
All Implemented Interfaces:
Stage, PipelineStage, com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable

public class DropNumbersStage
extends StageAdapter

Drops any tokens that parse as integers. This stage should be inserted after the universal tokenizer. Since the tokenizer will split number characters apart from any punctuation, we'll only ever be examining integers here.


Field Summary
 
Fields inherited from class com.sun.labs.minion.pipeline.StageAdapter
downstream, name
 
Constructor Summary
DropNumbersStage()
           
 
Method Summary
 void token(Token t)
          Processes a token from further up the pipeline.
 
Methods inherited from class com.sun.labs.minion.pipeline.StageAdapter
defineField, dump, endDocument, endField, getDownstream, getName, newProperties, punctuation, savedData, setDownstream, setName, shutdown, startDocument, startField, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropNumbersStage

public DropNumbersStage()
Method Detail

token

public void token(Token t)
Processes a token from further up the pipeline. If the token represents a number, the token is dropped. Otherwise, the token is passed to the downstream stage.

Specified by:
token in interface Stage
Overrides:
token in class StageAdapter
Parameters:
t - The token to process.