lolo.scans
Class Scan
java.lang.Object
|
+--lolo.Scan
|
+--lolo.scans.Scan
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Flt, QuotedChar, QuotedText, Set, SimpleIdentifier, SimpleWhitespace, SlashSlashComment, Word
- abstract class Scan
- extends Scan
A package base class for all lolo.Scan subclasses.
- Author:
- Bernd Kühl
(bernd@informatik.uni-osnabrueck.de)
- See Also:
Scan, Serialized Form
|
Field Summary |
protected boolean |
reset
May be used in subclasses to mark already reseted objects. |
protected Scan.State |
stateObject
A State object which can be used in subclasses as result for nextChar(). |
|
Constructor Summary |
(package private) |
Scan()
|
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns the hash code of the Class object as hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
stateObject
protected final Scan.State stateObject
- A State object which can be used in subclasses as result for nextChar().
- See Also:
Scan.State,
Scan.nextChar(char)
reset
protected transient boolean reset
- May be used in subclasses to mark already reseted objects.
Scan
Scan()
equals
public boolean equals(java.lang.Object obj)
- Indicates whether some other object is "equal to" this one.
- Overrides:
equals in class Scan
- Returns:
- true if this and obj are from the same class,
false otherwise.
hashCode
public int hashCode()
- Returns the hash code of the Class object as hash code value for the object.
- Overrides:
hashCode in class Scan
- Returns:
- this.getClass().hashCode()
toString
public java.lang.String toString()
- Returns a string representation of the object.
- Overrides:
toString in class java.lang.Object
- Returns:
- a string representation of the object.