Send bugs or comments to Bernd Kühl (bernd@informatik.uni-osnabrueck.de)

lolo.scans
Class Char

java.lang.Object
  |
  +--lolo.Scan
        |
        +--lolo.scans.Scan
              |
              +--lolo.scans.Set
                    |
                    +--lolo.scans.Char
All Implemented Interfaces:
java.io.Serializable

public class Char
extends Set

A simple class to scan a single character.

Author:
Bernd Kühl (bernd@informatik.uni-osnabrueck.de)
See Also:
Serialized Form

Inner classes inherited from class lolo.Scan
Scan.Action, Scan.State
 
Fields inherited from class lolo.scans.Set
inside, set
 
Fields inherited from class lolo.scans.Scan
reset, stateObject
 
Fields inherited from class lolo.Scan
action, ignore
 
Constructor Summary
Char()
          Creates an object which accepts any character.
Char(char ch)
          Creates an object which scans for the character ch.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class lolo.scans.Set
equals, hashCode, nextChar, reset
 
Methods inherited from class lolo.Scan
action, getAction, getIgnore, setAction, setIgnore
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Char

public Char()
Creates an object which accepts any character.

Char

public Char(char ch)
Creates an object which scans for the character ch.
Parameters:
ch - the character of this symbol.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class Set
Returns:
a string representation of the object.

Send bugs or comments to Bernd Kühl (bernd@informatik.uni-osnabrueck.de)