|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--condor.classad.Parser
This is the internal classad parser generated by byacc. From outside this package, it should be accessed through the wrapper class ClassAdParser.
ClassAdParser
Field Summary | |
(package private) boolean |
acceptPrefix
If true, accept when a prefix of the input matches. |
static short |
ERROR
|
(package private) PrintStream |
errs
Place to send error messages. |
static short |
FALSE
|
static short |
IDENTIFIER
|
static short |
INTEGER
|
static short |
OP_EQ
|
static short |
OP_GE
|
static short |
OP_IS
|
static short |
OP_ISNT
|
static short |
OP_LAND
|
static short |
OP_LE
|
static short |
OP_LOR
|
static short |
OP_NE
|
static short |
OP_SHL
|
static short |
OP_SHR
|
static short |
OP_SHRR
|
static short |
REAL
|
static short |
STRING
|
(package private) boolean |
tracing
Set to true if parsing actions should be traced. |
static short |
TRUE
|
static short |
UNARY
|
static short |
UNDEFINED
|
(package private) int |
verbosity
Verbosity for error messages. |
Constructor Summary | |
Parser(InputStream str)
|
|
Parser(Reader rdr)
|
|
Parser(String str)
|
Method Summary | |
boolean |
enableTracing(boolean on)
Turn debug tracing on or off. |
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()
Get the value associated with the "lookahead" token: the first token not yet consumed by the parser. |
Object |
parse()
Check whether the the unconsumed input is a syntactically valid phrase according to the grammar. |
Object |
parse(boolean acceptPrefix)
Check whether the the unconsumed input is a syntactically valid phrase according to the grammar. |
(package private) void |
printMessage(String msg)
Print a message, decorated with the current line and column number. |
void |
reset(InputStream str)
|
void |
reset(Reader rdr)
|
void |
reset(String str)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short IDENTIFIER
public static final short INTEGER
public static final short REAL
public static final short STRING
public static final short TRUE
public static final short FALSE
public static final short ERROR
public static final short UNDEFINED
public static final short OP_LOR
public static final short OP_LAND
public static final short OP_EQ
public static final short OP_NE
public static final short OP_IS
public static final short OP_ISNT
public static final short OP_LE
public static final short OP_GE
public static final short OP_SHL
public static final short OP_SHR
public static final short OP_SHRR
public static final short UNARY
boolean tracing
boolean acceptPrefix
int verbosity
PrintStream errs
Constructor Detail |
public Parser(Reader rdr)
public Parser(InputStream str)
public Parser(String str)
Method Detail |
public Object parse(boolean acceptPrefix)
If the input is already at end of file when this method is called, it silently returns null. If an error occurs, a message is printed by calling the user-supplied method error(String) and the result is null. On success, the return value is the "semantic value" assigned by semantic routines to the start symbol.
acceptPrefix
- if true, the input does not to be completely consumed.
public Object parse()
public boolean enableTracing(boolean on)
on
- if true, turn tracing on; otherwise turn it off.
public void reset(Reader rdr)
public void reset(InputStream str)
public void reset(String str)
public int nextToken()
getNextToken()
public Object nextValue()
nextToken()
public int getNextToken()
getNextToken()
void printMessage(String msg)
msg
- the message to print.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |