Class SelectOps
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.pg.rulectx.SelectOps
Merging wrapper for select_ops/select_ops_no_parens.
Provides a unified interface for working with PostgreSQL SELECT operations
that may or may not be parenthesized.
- Author:
- levsha_aa
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a wrapper for non-parenthesized SELECT operations.Creates a wrapper for parenthesized SELECT operations. -
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.v4.runtime.tree.TerminalNodeexcept()Returns the EXCEPT terminal node if present.org.antlr.v4.runtime.tree.TerminalNodeReturns the INTERSECT terminal node if present.org.antlr.v4.runtime.tree.TerminalNodeReturns the left parenthesis terminal node if present.org.antlr.v4.runtime.tree.TerminalNodeReturns the right parenthesis terminal node if present.selectOps(int i) Returns a SELECT operations wrapper for the specified index.Returns the SELECT primary context.Returns the SELECT statement context.Returns the set qualifier context (ALL, DISTINCT).org.antlr.v4.runtime.tree.TerminalNodeunion()Returns the UNION terminal node if present.
-
Constructor Details
-
SelectOps
Creates a wrapper for parenthesized SELECT operations.- Parameters:
ops- the SELECT operations context with parentheses
-
SelectOps
Creates a wrapper for non-parenthesized 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
Returns a SELECT operations wrapper for the specified index.- Parameters:
i- the index of the SELECT operations- Returns:
- SELECT operations wrapper or null if not found
-
intersect
public org.antlr.v4.runtime.tree.TerminalNode intersect()Returns the INTERSECT terminal node if present.- Returns:
- the INTERSECT node or null if not present
-
union
public org.antlr.v4.runtime.tree.TerminalNode union()Returns the UNION terminal node if present.- Returns:
- the UNION node or null if not present
-
except
public org.antlr.v4.runtime.tree.TerminalNode except()Returns the EXCEPT terminal node if present.- Returns:
- the EXCEPT node or null if not present
-
setQualifier
Returns the set qualifier context (ALL, DISTINCT).- Returns:
- the set qualifier context or null if not present
-
selectPrimary
Returns the SELECT primary context.- Returns:
- the SELECT primary context or null if not present
-