Class SQLExplainOPToken

  • Direct Known Subclasses:
    SQLTraceOPToken

    public class SQLExplainOPToken
    extends SQLOPToken
    SQLExplainOPToken is used for parsing and specifying the AST used for an explain plan statement.

    Syntax:

    EXPLAIN PLAN FOR select stmt | update stmt | delete stmt

    Author:
    tb 2011.06.05
    • Field Detail

    • Constructor Detail

      • SQLExplainOPToken

        public SQLExplainOPToken​(String id)
        Construct a new SQLExplainOPToken with the given parameters.
        Parameters:
        id - string identifier for this token
    • Method Detail

      • nud

        public Term nud​(OPParser parser)
        Description copied from class: IdentifierOPToken
        Process this token in the context of parser p with the null denotation. A nud method typically will have no interest in the token to the left. The processing results in an Abstract Syntax Tree Node that captures the meaning
        Overrides:
        nud in class IdentifierOPToken
        Parameters:
        parser - the parser that is the context for parsing
        Returns:
        an AstNode
      • advanceToStmt

        protected void advanceToStmt​(OPScanner s)
        Advance the scanner past any tokens preceding the statement.
        Parameters:
        s - the scanner
      • getFunctor

        protected String getFunctor()
        Get the functor for the new term.
        Returns:
        the functor