|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.jql.parser.DefaultJqlQueryParser
@ThreadSafe public final class DefaultJqlQueryParser
An implementation of JqlQueryParser
that implements the query parser using ANTLR.
Constructor Summary | |
---|---|
DefaultJqlQueryParser()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultJqlQueryParser()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |