Class ValueExpr
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.pg.expr.AbstractExpr
org.pgcodekeeper.core.parsers.antlr.pg.expr.ValueExpr
Parser for value expressions with namespace support.
-
Constructor Summary
ConstructorsConstructorDescriptionValueExpr(MetaContainer meta) Creates a ValueExpr parser with meta container. -
Method Summary
Modifier and TypeMethodDescriptionAnalyzes a value expression and returns its type information.function(SQLParser.Function_callContext function) Analyzes a function call and returns its type information.voidorderBy(SQLParser.Orderby_clauseContext orderBy) Processes an ORDER BY clause.voidProcesses a WINDOW definition.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.pg.expr.AbstractExpr
getDepcies, setFullAnaLyze
-
Constructor Details
-
ValueExpr
Creates a ValueExpr parser with meta container.- Parameters:
meta- the meta container with schema information
-
-
Method Details
-
analyze
Analyzes a value expression and returns its type information.Alternative checks are ordered for performance according to their usage frequency in real code. Statistics gathered on the internal DB codebase as of 2019-10-16. Also note that some checks are constrained by the grammar to go before others. Otherwise, some alternatives would be mis-processed as a wrong kind.
-
function
Analyzes a function call and returns its type information.- Parameters:
function- the function call context to analyze- Returns:
- pair containing the function name and return type
-
orderBy
Processes an ORDER BY clause.- Parameters:
orderBy- the ORDER BY clause context
-
window
Processes a WINDOW definition.- Parameters:
window- the WINDOW definition context
-