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

lolo.scans
Class Int

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

public class Int
extends SetMN

A class to scan for integer numbers.

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.SetMN
jog, m, n
 
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
Int()
          Constructs a recognizer which scans one ore more digits as symbol.
Int(int maxDigits)
          Constructs a recognizer which scans one or up to maxDigits digits as symbol.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class lolo.scans.SetMN
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

Int

public Int()
Constructs a recognizer which scans one ore more digits as symbol.

Int

public Int(int maxDigits)
Constructs a recognizer which scans one or up to maxDigits digits as symbol.
Parameters:
maxDigits - the maximal number if digits per symbol.
Method Detail

toString

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

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