|
Send bugs or comments to Bernd Kühl (bernd@informatik.uni-osnabrueck.de) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--lolo.Scan
|
+--lolo.scans.Scan
|
+--lolo.scans.QuotedChar
A class to scan for one quoted character.
| Inner classes inherited from class lolo.Scan |
Scan.Action, Scan.State |
| Field Summary | |
protected boolean |
end
Marks the current state. |
protected boolean |
escape
Is the character escaped? |
protected char[] |
found
Holds the unescaped recognized quoted character. |
protected boolean |
middle
Marks the current state. |
protected char |
quote
The quote character. |
protected boolean |
start
Marks the current state. |
| Fields inherited from class lolo.scans.Scan |
reset, stateObject |
| Fields inherited from class lolo.Scan |
action, ignore |
| Constructor Summary | |
QuotedChar()
Just calls this('\''). |
|
QuotedChar(char quote)
Constructs a recognizer to scan for a quoted character. |
|
| Method Summary | |
void |
action(char[] buffer,
int off,
int len)
If action is not null, then the action method is called for this object. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
protected char |
getQuote()
Returns the quote character. |
int |
hashCode()
Returns a hash code value for this object. |
Scan.State |
nextChar(char ch)
Called by a Scanner for every new character. |
void |
reset()
Resets this instance. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class lolo.Scan |
getAction, getIgnore, setAction, setIgnore |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected final char[] found
protected transient boolean start
protected transient boolean middle
protected transient boolean end
protected transient boolean escape
protected final char quote
| Constructor Detail |
public QuotedChar()
public QuotedChar(char quote)
quote - the quoted character.| Method Detail |
public void reset()
Scanreset in class Scanprotected char getQuote()
public Scan.State nextChar(char ch)
ScannextChar in class Scanlolo.ScanScan.State,
Scannerpublic int hashCode()
hashCode in class Scanpublic boolean equals(java.lang.Object o)
equals in class Scan
public void action(char[] buffer,
int off,
int len)
Scanaction in class Scanlolo.Scanbuffer - the character buffer holding the characters of the symbol.off - offset into the buffer.len - number of characters for the symbol.Scan.actionpublic java.lang.String toString()
toString in class Scan
|
Send bugs or comments to Bernd Kühl (bernd@informatik.uni-osnabrueck.de) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||