Class BindVariableExpression
java.lang.Object
dev.frostlake.executor.expressions.BindVariableExpression
- All Implemented Interfaces:
Expression
A
:name bind-variable reference — inside a Snowflake Scripting block, SQL statements
refer to the block's variables (and a procedure's parameters) as :name. Resolved at
evaluation time from the procedural scope.-
Constructor Summary
ConstructorsConstructorDescriptionBindVariableExpression(String varName) BindVariableExpression(String varName, SourcePosition position) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Accept a visitor for the visitor patternWhere the reference begins, relative to the fragment being parsed — the COLON's offset, which is what live reports for an unresolvable one::nopeinBEGIN RETURN :nope; ENDis position 13, the colon, not the name after it.toString()
-
Constructor Details
-
BindVariableExpression
-
BindVariableExpression
-
-
Method Details
-
getVarName
-
getPosition
Where the reference begins, relative to the fragment being parsed — the COLON's offset, which is what live reports for an unresolvable one::nopeinBEGIN RETURN :nope; ENDis position 13, the colon, not the name after it. -
accept
Description copied from interface:ExpressionAccept a visitor for the visitor pattern- Specified by:
acceptin interfaceExpression
-
toString
-