|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.parser.CharClass.Parser
public static class CharClass.Parser
Parser for a character class specification.
| Field Summary | |
|---|---|
protected int |
idx
The index into the string. |
protected java.lang.String |
s
The string. |
| Constructor Summary | |
|---|---|
CharClass.Parser(java.lang.String s)
Create a new character class parser for the specified string. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Determine whether there are more characters. |
boolean |
hasRange()
Determine whether the next character is a range delimiter ' -'. |
char |
next()
Return the next character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String s
protected int idx
| Constructor Detail |
|---|
public CharClass.Parser(java.lang.String s)
[' and trailing ']' characters.
s - The string to parse.| Method Detail |
|---|
public boolean hasNext()
true if there are more characters.public boolean hasRange()
-'. Note that this test is destructive:
if the next character is a range delimiter, it is consumed.
true if the next character is a range
delimiter.public char next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||