org.ourgrid.common.spec.token
Class Operator

java.lang.Object
  extended by org.ourgrid.common.spec.token.Token
      extended by org.ourgrid.common.spec.token.Operator

public class Operator
extends Token

It is a Token object that is recognized as an Operator at the CodesTable

See Also:
CodesTable

Constructor Summary
Operator()
           
 
Method Summary
 Token readOperator(char theChar, CharReader reader)
          Check if the character passed as parameter initializes an Operator.
 
Methods inherited from class org.ourgrid.common.spec.token.Token
getCode, getLine, getSymbol, setCode, setLine, setSymbol, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Operator

public Operator()
Method Detail

readOperator

public Token readOperator(char theChar,
                          CharReader reader)
                   throws java.io.IOException
Check if the character passed as parameter initializes an Operator.

Parameters:
theChar - - Is the char that begins a word that has to be checked
reader - - Is the reader that marks the point where is the character to be read.
Returns:
A Token object if the character was recognized as a Operator at the CodesTable or "null" if it was not.
Throws:
java.io.IOException
See Also:
CodesTable