Package adql.parser

Class ADQLParser

  • All Implemented Interfaces:
    ADQLParserConstants

    public class ADQLParser
    extends java.lang.Object
    implements ADQLParserConstants
    Parses an ADQL query thanks to the Query() function.

    This parser is able, thanks to a QueryChecker object, to check each ADQLQuery just after its generation. It could be used to check the consistency between the ADQL query to parse and the "database" on which the query must be executed. By default, there is no QueryChecker. Thus you must extend QueryChecker to check semantically all generated ADQLQuery objects.

    To create an object representation of the given ADQL query, this parser uses a ADQLQueryFactory object. So if you want customize some object (ie. CONTAINS) of this representation you just have to extend the corresponding default object (ie. ContainsFunction) and to extend the corresponding function of ADQLQueryFactory (ie. createContains(...)).

    WARNING: To modify this class it's strongly encouraged to modify the .jj file in the section between PARSER_BEGIN and PARSER_END and to re-compile it with JavaCC.

    Version:
    1.4 (01/2018)
    Author:
    Grégory Mantelet (CDS;ARI) - gmantele@ari.uni-heidelberg.de
    See Also:
    QueryChecker, ADQLQueryFactory