swpchat.protocol
Class Token

java.lang.Object
  |
  +--swpchat.protocol.Token

public class Token
extends java.lang.Object

A support class used for collecting received tokens in a vector. It is a simple data store.


Field Summary
 double nval
          The numeric value, which is not always valid.
 java.lang.String sval
          The string value, which is not always valid.
 int ttype
          The Token Type.
 
Constructor Summary
Token(int new_ttype, java.lang.String new_sval, double new_nval)
          A trivial initializing constructor.
 
Method Summary
 java.lang.String toString()
          The conventional toString, here simply listing all data fields.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

ttype

public int ttype
The Token Type.

sval

public java.lang.String sval
The string value, which is not always valid.

nval

public double nval
The numeric value, which is not always valid.
Constructor Detail

Token

public Token(int new_ttype,
             java.lang.String new_sval,
             double new_nval)
A trivial initializing constructor.
Method Detail

toString

public java.lang.String toString()
The conventional toString, here simply listing all data fields.
Overrides:
toString in class java.lang.Object