@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
JqlQueryParser
parseQuery
in interface JqlQueryParser
jqlQuery
- 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)
JqlQueryParser
isValidFieldName
in interface JqlQueryParser
fieldName
- the field name to check.public boolean isValidFunctionArgument(String argument)
JqlQueryParser
isValidFunctionArgument
in interface JqlQueryParser
argument
- the function argument to check.public boolean isValidFunctionName(String functionName)
JqlQueryParser
isValidFunctionName
in interface JqlQueryParser
functionName
- the function name to check.public boolean isValidValue(String value)
JqlQueryParser
isValidValue
in interface JqlQueryParser
value
- the value to check.public static void main(String[] args) throws IOException
IOException
Copyright © 2002-2024 Atlassian. All Rights Reserved.