com.bbn.swede.editor.rules
Class WordBeginRule

java.lang.Object
  extended byWordPatternRule
      extended bycom.bbn.swede.editor.rules.WordBeginRule

public class WordBeginRule
extends WordPatternRule

A specialized pattern rule that matches words that begin with a pattern.

See Also:
Serialized Form

Constructor Summary
WordBeginRule(IWordDetector detector, String startSequence, IToken token)
          Creates a new WordBeginRule to match words that begin with specific text.
 
Method Summary
protected  boolean endSequenceDetected(ICharacterScanner scanner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordBeginRule

public WordBeginRule(IWordDetector detector,
                     String startSequence,
                     IToken token)
Creates a new WordBeginRule to match words that begin with specific text.

Parameters:
detector - The detector the rule will use to locate words
startSequence - The pattern to match at the beginning of words
token - The token to return when a word matches startSequence
Method Detail

endSequenceDetected

protected boolean endSequenceDetected(ICharacterScanner scanner)


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.