@ThreadSafe public final class DefaultJqlQueryParser extends Object implements JqlQueryParser
JqlQueryParser that implements the query parser using ANTLR.| Constructor and Description |
|---|
DefaultJqlQueryParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidFieldName(String fieldName)
Determines whether or not the passed string is a valid JQL field name.
|
boolean |
isValidFunctionArgument(String argument)
Determines whether or not the passed string is a valid JQL function argument.
|
boolean |
isValidFunctionName(String functionName)
Determines whether or not the passed string is a valid JQL function name.
|
boolean |
isValidValue(String value)
Determines whether or not the passed string is a valid JQL value.
|
static void |
main(String[] args) |
Query |
parseQuery(String jqlQuery)
Parse the passed JQL string into its SearchQuery representation.
|
public final Query parseQuery(String jqlQuery) throws JqlParseException
JqlQueryParserparseQuery in interface JqlQueryParserjqlQuery - the JQL string to parse. Must not be null or blank.JqlParseException - if an error occurs while parsing the query.public boolean isValidFieldName(String fieldName)
JqlQueryParserisValidFieldName in interface JqlQueryParserfieldName - the field name to check.public boolean isValidFunctionArgument(String argument)
JqlQueryParserisValidFunctionArgument in interface JqlQueryParserargument - the function argument to check.public boolean isValidFunctionName(String functionName)
JqlQueryParserisValidFunctionName in interface JqlQueryParserfunctionName - the function name to check.public boolean isValidValue(String value)
JqlQueryParserisValidValue in interface JqlQueryParservalue - the value to check.public static void main(String[] args) throws IOException
IOExceptionCopyright © 2002-2018 Atlassian. All Rights Reserved.