java.lang.Object
org.pgcodekeeper.core.parsers.antlr.ms.rulectx.MsSelectOps

public class MsSelectOps extends Object
Merging wrapper for Microsoft SQL SELECT operations. Provides a unified interface for working with Microsoft SQL SELECT operations that may or may not be parenthesized.
  • Constructor Details

    • MsSelectOps

      public MsSelectOps(TSQLParser.Select_opsContext ops)
      Creates a wrapper for parenthesized Microsoft SQL SELECT operations.
      Parameters:
      ops - the SELECT operations context with parentheses
    • MsSelectOps

      public MsSelectOps(TSQLParser.Select_ops_no_parensContext ops)
      Creates a wrapper for non-parenthesized Microsoft SQL SELECT operations.
      Parameters:
      ops - the SELECT operations context without parentheses
  • Method Details

    • leftParen

      public org.antlr.v4.runtime.tree.TerminalNode leftParen()
      Returns the left parenthesis terminal node if present.
      Returns:
      the left parenthesis node or null if not present
    • rightParen

      public org.antlr.v4.runtime.tree.TerminalNode rightParen()
      Returns the right parenthesis terminal node if present.
      Returns:
      the right parenthesis node or null if not present
    • selectStmt

      Returns the SELECT statement context.
      Returns:
      the SELECT statement context or null for non-parenthesized operations
    • selectOps

      public List<TSQLParser.Select_opsContext> selectOps()
    • selectOps

      public MsSelectOps selectOps(int i)
    • intersect

      public org.antlr.v4.runtime.tree.TerminalNode intersect()
    • union

      public org.antlr.v4.runtime.tree.TerminalNode union()
    • except

      public org.antlr.v4.runtime.tree.TerminalNode except()
    • setQualifier

      public TSQLParser.Set_qualifierContext setQualifier()
    • querySpecification

      public TSQLParser.Query_specificationContext querySpecification()