|
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.QuotedText
A class to scan for quoted text. The quoted text can span more then one line.
| Inner classes inherited from class lolo.Scan |
Scan.Action, Scan.State |
| Field Summary | |
protected char[] |
help
Used the collect the unescaped scanned characters. |
protected boolean |
inside
Marks if the recognition is after the quote character. |
protected char |
last
Holds the last scanned character. |
protected char |
quote
The quote character. |
| Fields inherited from class lolo.scans.Scan |
reset, stateObject |
| Fields inherited from class lolo.Scan |
action, ignore |
| Constructor Summary | |
QuotedText()
Just calls this('"'). |
|
QuotedText(char quote)
Constructs a recognizer who uses quote as the quote 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 transient boolean inside
protected final char quote
protected transient char last
protected transient char[] help
| Constructor Detail |
public QuotedText()
public QuotedText(char quote)
quote - the quote 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 | |||||||||