edu.wis.jtlv.env.ui.editors.fds
Class FDSValueRule

java.lang.Object
  extended by edu.wis.jtlv.env.ui.editors.fds.FDSValueRule
All Implemented Interfaces:
org.eclipse.jface.text.rules.IRule

public class FDSValueRule
extends java.lang.Object
implements org.eclipse.jface.text.rules.IRule

An implementation of IRule detecting a numerical value.


Constructor Summary
FDSValueRule(org.eclipse.jface.text.rules.IToken token)
          Creates a rule which will return the specified token when a numerical sequence is detected.
 
Method Summary
 org.eclipse.jface.text.rules.IToken evaluate(org.eclipse.jface.text.rules.ICharacterScanner scanner)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FDSValueRule

public FDSValueRule(org.eclipse.jface.text.rules.IToken token)
Creates a rule which will return the specified token when a numerical sequence is detected.

Parameters:
token - the token to be returned
Method Detail

evaluate

public org.eclipse.jface.text.rules.IToken evaluate(org.eclipse.jface.text.rules.ICharacterScanner scanner)
Specified by:
evaluate in interface org.eclipse.jface.text.rules.IRule