|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--condor.classad.ClassAdParser
A factory for creating classad expressions (instances of Expr
), by parsing a textual representation.
Input can come from a String, a Reader, or an InputStream.
ClassAd
Constructor Summary | |
ClassAdParser(InputStream str)
Create a parser to parse input from an InputStream. |
|
ClassAdParser(Reader rdr)
Create a parser to parse input from a Reader. |
|
ClassAdParser(String s)
Create a parser to parse a string. |
Method Summary | |
boolean |
enableTracing(boolean on)
Control whether the actions of the parser are traced. |
int |
getNextToken()
Get and remove the "lookahead" token: the first token not yet consumed by the parser. |
int |
nextToken()
Get the "lookahead" token: the first token not yet consumed by the parser. |
Object |
nextValue()
The the "value" of the lookahead token. |
Expr |
parse()
Parse a classsad Expr from the current input stream. |
Query |
parseQuery()
Parse a Query from the current input stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassAdParser(String s)
s
- the string to be parsed.public ClassAdParser(Reader rdr)
rdr
- the reader that supplies the input.public ClassAdParser(InputStream str)
str
- the InputStream that supplies the input.Method Detail |
public Expr parse()
a + b cThe first call to parse() will return "a+b" and a subsequent call will return "c".
nextToken()
public Query parseQuery()
public int nextToken()
getNextToken()
public Object nextValue()
nextToken()
public int getNextToken()
getNextToken()
public boolean enableTracing(boolean on)
on
- if true, turn on tracing; if false, turn it off.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |