|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jagg.PropertyScanner
public class PropertyScanner
This class is a scanner that helps to parse a property specification string.
| Nested Class Summary | |
|---|---|
static class |
PropertyScanner.Token
Enumeration for the different types of Tokens. |
| Constructor Summary | |
|---|---|
PropertyScanner()
Construct a PropertyScanner object, with empty input. |
|
PropertyScanner(java.lang.String propertyText)
Construct a PropertyScanner object, with the given input. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCurrLexeme()
Returns the current lexeme after a call to getNextToken. |
PropertyScanner.Token |
getNextToken()
Returns the Token. |
void |
reset()
Resets the scanner to the beginning of the property text string. |
void |
setPropertyText(java.lang.String propertyText)
Give the PropertyScanner another property text string to
scan. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyScanner()
PropertyScanner object, with empty input.
public PropertyScanner(java.lang.String propertyText)
PropertyScanner object, with the given input.
propertyText - property tag text to scan.| Method Detail |
|---|
public PropertyScanner.Token getNextToken()
Token. After this call completes, the current
lexeme is available via a call to getCurrLexeme.
Starts looking at the current offset, and once the token is found, then
the offset is advanced to the start of the next token.
Token.getCurrLexeme()public java.lang.String getCurrLexeme()
getNextToken.
null if
getNextToken hasn't been called yet after a reset.getNextToken(),
reset()public void reset()
public void setPropertyText(java.lang.String propertyText)
PropertyScanner another property text string to
scan. Resets to the beginning of the string.
propertyText - The property text to scan.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||