PrivateconstructorOptionalgroupPrivateindexOptionallimitOptionalmodeOptionaloffsetOptionalorderReadonlyparserReadonlyqueryOptionalsecurityOptionalvisibilityOptionalwherePrivateparsePrivateparsePrivateparsePrivateparsePrivateparsePrivateparsePrivateparsePrivateparseStaticgetSOQL string
SObject type of the SOQL or undefined if the query is not a SOQL query
StaticparseParse an SOQL string and return a SalesforceQueryData object containing the decomposed query.
The parser will try to parse the query as accurately as possible, but it will not validate the query. If it encounters an unexpected keyword or operator the parser will not throw an error when in the root expression but will instead return the part of the query that it was able to parse.
The parser will throw an error if it encounters an unexpected keyword or operator in a sub-expression or
if the query is not starting with SELECT and lacking the FROM keyword.
This parser supports the following parts of a SOQL query:
To convert the decomposed query back to a SOQL string see QueryFormatter.format which converts a SalesforceQueryData object back to an SOQL string.
Sub-queries and nested-queries are not parsed and will be stored as a string in the field list or condition
SOQL string to parse
Decomposed query that can be analyzed and modified.
StaticparseStaticparse
Parse the query and extract the SObject type from the query string. If the QueryParser fails to parse the query, it will fallback to a regex matching.