|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.umontreal.iro.rali.XPathTokenizer
public class XPathTokenizer
Specialized StreamTokeniser to simplify parsing of an XPath expression to be split in parts
Method Summary | |
---|---|
java.lang.String |
getToken()
Return the current token |
boolean |
hasNext()
Check if there are any token left |
boolean |
isString()
Check if current token is a string |
static void |
main(java.lang.String[] args)
Some unit testing of this class |
java.lang.String |
nextToken()
Get a new token and return it as a String |
java.lang.String |
skip(java.lang.String sym)
Check if the current token is @sym and return the next one if this is not the case then raise an exception |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean hasNext()
public boolean isString()
public java.lang.String nextToken() throws java.io.IOException
java.io.IOException
public java.lang.String getToken()
public java.lang.String skip(java.lang.String sym) throws java.io.IOException
sym
- the token to check with
java.io.IOException
public static void main(java.lang.String[] args)
args
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |