|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.dropboxmq.messageselector.Parser
public class Parser
Created: 06 Oct 2007
Nested Class Summary | |
---|---|
(package private) static class |
Parser.JJCalls
|
Field Summary | |
---|---|
(package private) SimpleCharStream |
jj_input_stream
|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
ParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface net.sf.dropboxmq.messageselector.ParserConstants |
---|
AND, BETWEEN, BLOCK_COMMENT, DASH_COMMENT, DECIMAL, DEFAULT, DIGIT, EOF, ESCAPE, EXPONENT, FALSE, FLOAT_SUFFIX, FLOATING_POINT, HEX, IDENTIFIER, IN, INTEGER, IS, LETTER, LIKE, LINE_COMMENT, NEWLINE, NOT, NULL, OCTAL, OR, RETURN, SIGN, SPACE, STRING, TAB, tokenImage, TRUE |
Constructor Summary | |
---|---|
Parser(InputStream stream)
Constructor with InputStream. |
|
Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
Parser(ParserTokenManager tm)
Constructor with generated Token Manager. |
|
Parser(Reader stream)
Constructor. |
Method Summary | |
---|---|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
Expression |
parse()
|
static Expression |
parse(String messageSelector)
|
Expression |
parseAddition()
|
Expression |
parseAnd()
|
Expression |
parseConditional()
|
ConstantExpression |
parseConstant()
|
Expression |
parseExpression()
|
Expression |
parseMultiplication()
|
Expression |
parseOr()
|
String |
parseString()
|
Expression |
parseUnary()
|
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(ParserTokenManager tm)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ParserTokenManager token_source
SimpleCharStream jj_input_stream
public Token token
public Token jj_nt
Constructor Detail |
---|
public Parser(InputStream stream)
public Parser(InputStream stream, String encoding)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
Method Detail |
---|
public static Expression parse(String messageSelector) throws InvalidSelectorException
InvalidSelectorException
public final Expression parse() throws ParseException
ParseException
public final Expression parseOr() throws ParseException
ParseException
public final Expression parseAnd() throws ParseException
ParseException
public final Expression parseConditional() throws ParseException
ParseException
public final Expression parseAddition() throws ParseException
ParseException
public final Expression parseMultiplication() throws ParseException
ParseException
public final Expression parseUnary() throws ParseException
ParseException
public final Expression parseExpression() throws ParseException
ParseException
public final ConstantExpression parseConstant() throws ParseException
ParseException
public final String parseString() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |