com.threerings.expr
Class ExpressionParser.OperatorStreamTokenizer

java.lang.Object
  extended by java.io.StreamTokenizer
      extended by com.threerings.expr.ExpressionParser.OperatorStreamTokenizer
Enclosing class:
ExpressionParser<T>

protected static class ExpressionParser.OperatorStreamTokenizer
extends StreamTokenizer

Extends StreamTokenizer slightly to handle multi-character operators.


Field Summary
protected  double _nnval
           
protected  String _nsval
           
protected  int _nttype
           
static int TT_NOTHING
          A constant indicating that nothing has yet been read (defined privately in the parent class).
static int TT_OPERATOR
          A constant indicating that an operator token has been read.
 
Fields inherited from class java.io.StreamTokenizer
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype
 
Constructor Summary
ExpressionParser.OperatorStreamTokenizer(Reader reader)
          Creates a new tokenizer.
 
Method Summary
 int nextToken()
           
 
Methods inherited from class java.io.StreamTokenizer
commentChar, eolIsSignificant, lineno, lowerCaseMode, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TT_NOTHING

public static final int TT_NOTHING
A constant indicating that nothing has yet been read (defined privately in the parent class).

See Also:
Constant Field Values

TT_OPERATOR

public static final int TT_OPERATOR
A constant indicating that an operator token has been read.

See Also:
Constant Field Values

_nttype

protected int _nttype

_nsval

protected String _nsval

_nnval

protected double _nnval
Constructor Detail

ExpressionParser.OperatorStreamTokenizer

public ExpressionParser.OperatorStreamTokenizer(Reader reader)
Creates a new tokenizer.

Method Detail

nextToken

public int nextToken()
              throws IOException
Overrides:
nextToken in class StreamTokenizer
Throws:
IOException