jfun.parsec
Class Token2String

java.lang.Object
  extended by jfun.parsec.Token2String
All Implemented Interfaces:
java.io.Serializable, ShowToken

public final class Token2String
extends java.lang.Object
implements ShowToken, java.io.Serializable

Default ShowToken implementation that uses toString() to convert.

Author:
Ben Yu 2004-11-13
See Also:
Serialized Form

Constructor Summary
Token2String()
           
 
Method Summary
static ShowToken instance()
           
 java.lang.String show(java.lang.Object t)
          convert a token to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Token2String

public Token2String()
Method Detail

show

public java.lang.String show(java.lang.Object t)
Description copied from interface: ShowToken
convert a token to a String.

Specified by:
show in interface ShowToken
Parameters:
t - the token.
Returns:
the string.

instance

public static ShowToken instance()