java.lang.Object | |||
↳ | org.antlr.runtime.BaseRecognizer | ||
↳ | org.antlr.runtime.Parser | ||
↳ | com.atlassian.jira.jql.parser.antlr.JqlParser |
This is the ANTLRv3 grammar for JQL. The lexer (JqlLexer) and parser (JqlParser) can be generated from this file by running mvn generate-sources This grammar uses JqlStringSupportImpl.isReservedString to determine whether or not a string is reserved. We tried doing this in the grammar by listing all the reserved words as tokens but ANTLR did not react very well to this (it generated a very large and slow Lexer). Thus changes to JqlStringSupportImpl.isReservedString will change what strings this grammar will parse. NOTE: Making changes to the grammar is likely to affect JqlStringSupportImpl which makes assumptions about the structure of this file.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JqlParser.field_return | |||||||||||
JqlParser.numberString_return | |||||||||||
JqlParser.query_return | |||||||||||
JqlParser.string_return |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | AFTER | ||||||||||
int | AMPER | ||||||||||
int | AMPER_AMPER | ||||||||||
int | AND | ||||||||||
int | ASC | ||||||||||
int | BANG | ||||||||||
int | BEFORE | ||||||||||
int | BSLASH | ||||||||||
int | BY | ||||||||||
int | CHANGED | ||||||||||
int | COMMA | ||||||||||
int | CONTROLCHARS | ||||||||||
int | CR | ||||||||||
int | CUSTOMFIELD | ||||||||||
int | DESC | ||||||||||
int | DIGIT | ||||||||||
int | DURING | ||||||||||
int | EMPTY | ||||||||||
int | EOF | ||||||||||
int | EQUALS | ||||||||||
int | ERRORCHAR | ||||||||||
int | ERROR_RESERVED | ||||||||||
int | ESCAPE | ||||||||||
int | FROM | ||||||||||
int | GT | ||||||||||
int | GTEQ | ||||||||||
int | HEXDIGIT | ||||||||||
int | IN | ||||||||||
int | IS | ||||||||||
int | LBRACKET | ||||||||||
int | LIKE | ||||||||||
int | LPAREN | ||||||||||
int | LT | ||||||||||
int | LTEQ | ||||||||||
int | MATCHWS | ||||||||||
int | MINUS | ||||||||||
int | NEGNUMBER | ||||||||||
int | NEWLINE | ||||||||||
int | NL | ||||||||||
int | NOT | ||||||||||
int | NOT_EQUALS | ||||||||||
int | NOT_LIKE | ||||||||||
int | ON | ||||||||||
int | OR | ||||||||||
int | ORDER | ||||||||||
int | PIPE | ||||||||||
int | PIPE_PIPE | ||||||||||
int | POSNUMBER | ||||||||||
int | QUOTE | ||||||||||
int | QUOTE_STRING | ||||||||||
int | RBRACKET | ||||||||||
int | RESERVED_CHARS | ||||||||||
int | RPAREN | ||||||||||
int | SPACE | ||||||||||
int | SQUOTE | ||||||||||
int | SQUOTE_STRING | ||||||||||
int | STRING | ||||||||||
int | STRINGSTOP | ||||||||||
int | TO | ||||||||||
int | WAS | ||||||||||
int | WS |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.antlr.runtime.BaseRecognizer
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.antlr.runtime.Parser
| |||||||||||
From class
org.antlr.runtime.BaseRecognizer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.antlr.runtime.Parser
| |||||||||||
From class
org.antlr.runtime.BaseRecognizer
| |||||||||||
From class
java.lang.Object
|
RecognitionException |
---|
RecognitionException |
---|