|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.slac.aida.lib.util.common.AQSLex
public class AQSLex
Analyses AQS (AIDA Query Strings) and returns AQSTokens corresponding to the characters read. Succesive calls to the getToken() method will return the next token mark() and rollback(mark) are supported with the respective methods unGetToken() rollsback to the last token
AQSToken
Constructor Summary | |
---|---|
AQSLex(java.lang.String target)
Creates a new instance of AQSLex AQS lexical analyser |
Method Summary | |
---|---|
AQSToken |
getInstanceToken()
Gets the next Token until end of target for instance names. |
AQSToken |
getToken()
Gets the next Token until end of target. |
int |
mark()
Mark current point in input stream for latter rollback. |
void |
rollback(int mark)
Rollback to given mark. |
void |
unGetToken()
Unget token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AQSLex(java.lang.String target)
target
- AQS target string specification to be lexically analysedMethod Detail |
---|
public AQSToken getInstanceToken()
AQSToken
public AQSToken getToken()
AQSToken
public void unGetToken()
stack
public int mark()
stack
,
forwardStack
public void rollback(int mark)
mark
- Mark ID. This is a valid mark identifier returned from a call to mark().
It is used to locate the desired rollback context.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |