Package org.yamcs.ui.packetviewer.filter
Class FilterParser
- java.lang.Object
-
- org.yamcs.ui.packetviewer.filter.FilterParser
-
- All Implemented Interfaces:
FilterParserConstants
public class FilterParser extends Object implements FilterParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.FilterParserTokenManagertoken_sourceGenerated Token Manager.-
Fields inherited from interface org.yamcs.ui.packetviewer.filter.FilterParserConstants
_ESCAPED_CHAR, _QUOTED_CHAR, _WHITESPACE, AND, CONTAINS, DEFAULT, EOF, EQ, GE, GT, IN_EXPRESSION, LE, LPAREN, LT, MATCHES, NE, NOT, OR, QUOTED, REF, RPAREN, STRING, tokenImage
-
-
Constructor Summary
Constructors Constructor Description FilterParser(InputStream stream)Constructor with InputStream.FilterParser(InputStream stream, String encoding)Constructor with InputStream and supplied encodingFilterParser(Reader stream)Constructor.FilterParser(FilterParserTokenManager tm)Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AndExpressionand()Comparisoncomparison()OrExpressioncompileExpression()voiddisable_tracing()Disable tracing.voidenable_tracing()Enable tracing.OrExpressionexpr()ParseExceptiongenerateParseException()Generate ParseException.TokengetNextToken()Get the next Token.TokengetToken(int index)Get the specific Token.Stringliteral()Operatorop()OrExpressionor()Stringreference()voidReInit(InputStream stream)Reinitialise.voidReInit(InputStream stream, String encoding)Reinitialise.voidReInit(Reader stream)Reinitialise.voidReInit(FilterParserTokenManager tm)Reinitialise.UnaryExpressionunary()
-
-
-
Field Detail
-
token_source
public FilterParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
FilterParser
public FilterParser(InputStream stream)
Constructor with InputStream.
-
FilterParser
public FilterParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
FilterParser
public FilterParser(Reader stream)
Constructor.
-
FilterParser
public FilterParser(FilterParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
compileExpression
public final OrExpression compileExpression() throws ParseException
- Throws:
ParseException
-
expr
public final OrExpression expr() throws ParseException
- Throws:
ParseException
-
or
public final OrExpression or() throws ParseException
- Throws:
ParseException
-
and
public final AndExpression and() throws ParseException
- Throws:
ParseException
-
unary
public final UnaryExpression unary() throws ParseException
- Throws:
ParseException
-
comparison
public final Comparison comparison() throws ParseException
- Throws:
ParseException
-
reference
public final String reference() throws ParseException
- Throws:
ParseException
-
literal
public final String literal() throws ParseException
- Throws:
ParseException
-
op
public final Operator op() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(InputStream stream, String encoding)
Reinitialise.
-
ReInit
public void ReInit(Reader stream)
Reinitialise.
-
ReInit
public void ReInit(FilterParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-