Uses of Class
dev.frostlake.executor.expressions.SourcePosition
Packages that use SourcePosition
Package
Description
-
Uses of SourcePosition in dev.frostlake.executor
Methods in dev.frostlake.executor that return SourcePositionModifier and TypeMethodDescriptionstatic SourcePositionLeadingCommentOffset.begin(SourcePosition origin) Note this statement's re-basing origin for the rest of its execution.static SourcePositionWhere the statement's first real token begins, or null when nothing needs re-basing — which is every statement that does not open with a comment, whitespace included.Methods in dev.frostlake.executor with parameters of type SourcePositionModifier and TypeMethodDescriptionstatic SourcePositionLeadingCommentOffset.begin(SourcePosition origin) Note this statement's re-basing origin for the rest of its execution.static voidLeadingCommentOffset.end(SourcePosition previous) Put back whateverLeadingCommentOffset.begin(dev.frostlake.executor.expressions.SourcePosition)displaced; null clears.Constructors in dev.frostlake.executor with parameters of type SourcePositionModifierConstructorDescriptionInvalidQualifierException(String qualifiedName, SourcePosition position) The same refusal, carrying the source position live always reports.UndeclaredScriptVariableException(String name, SourcePosition position) -
Uses of SourcePosition in dev.frostlake.executor.expressions
Methods in dev.frostlake.executor.expressions that return SourcePositionModifier and TypeMethodDescriptionstatic SourcePositionExpressionSource.begin(SourcePosition origin) Note where the fragment about to be evaluated begins, returning whatever origin it displaced so a nested evaluation can put it back.static SourcePositionExpressionSource.beginNested(SourcePosition within) Note a fragment that lives INSIDE the fragment already in force, composing the two origins.BinaryOperationExpression.getPosition()Where the OPERATOR token sits — not the expression's start and not the enclosing select item's.BindVariableExpression.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.CastExpression.getPosition()Where the cast was written, relative to its fragment — the::of the shorthand, the CAST or TRY_CAST keyword otherwise — or null for a cast the engine built itself.ColumnReferenceExpression.getPosition()Where this reference sat in its fragment, or null when nobody wrote it.FunctionCallExpression.getPosition()LikeAnyAllExpression.getPosition()Where the LIKE or ILIKE keyword sits, where live points a collation the predicate refuses.LiteralExpression.getPosition()Where this literal was written, or null when it was synthesised.SessionVarExpression.getPosition()Where the reference was written, as an offset into the expression's own text — stamped by the builder, so a refusal that points AT the variable can resolve it back to the statement.SubqueryExpression.getPosition()Where the subquery's own SELECT begins in the statement — what a refusal of the subquery's shape is anchored on.UnaryOperationExpression.getPosition()The operator's own place in the parsed fragment — a sign is refused AT the sign: live anchors "Invalid argument types for function 'NEGATE': (BOOLEAN)" on the-, and the 'UNARY PLUS' twin on the+, wherever the operand starts.WindowFunctionExpression.getPosition()Where the call begins in its source, so a refusal can point at it.DefaultMarkerExpression.getWhere()Where the word was written, for the refusal raised when it is evaluated rather than written.static SourcePositionExpressionSource.resolve(SourcePosition withinFragment) The statement-relative place of a fragment-relative one, or null when no origin is set.Methods in dev.frostlake.executor.expressions with parameters of type SourcePositionModifier and TypeMethodDescriptionstatic SourcePositionExpressionSource.begin(SourcePosition origin) Note where the fragment about to be evaluated begins, returning whatever origin it displaced so a nested evaluation can put it back.static SourcePositionExpressionSource.beginNested(SourcePosition within) Note a fragment that lives INSIDE the fragment already in force, composing the two origins.static voidExpressionSource.end(SourcePosition previous) Put back whateverExpressionSource.begin(dev.frostlake.executor.expressions.SourcePosition)displaced; null clears.static SourcePositionExpressionSource.resolve(SourcePosition withinFragment) The statement-relative place of a fragment-relative one, or null when no origin is set.voidBinaryOperationExpression.setPosition(SourcePosition position) voidCastExpression.setPosition(SourcePosition position) voidFunctionCallExpression.setPosition(SourcePosition position) voidLikeAnyAllExpression.setPosition(SourcePosition position) voidLiteralExpression.setPosition(SourcePosition where) Note where the literal was written.voidSessionVarExpression.setPosition(SourcePosition where) Record where the reference was written.voidSubqueryExpression.setPosition(SourcePosition position) voidUnaryOperationExpression.setPosition(SourcePosition where) voidWindowFunctionExpression.setPosition(SourcePosition position) Constructors in dev.frostlake.executor.expressions with parameters of type SourcePositionModifierConstructorDescriptionBindVariableExpression(String varName, SourcePosition position) ColumnReferenceExpression(String tableName, String columnName, SourcePosition position) A reference that remembers where it sat in the text it was parsed from, so a message about it can carry the position Snowflake always reports.ColumnReferenceExpression(String tableName, String columnName, SourcePosition position, int positionalOrdinal) The$Nflavour — seeColumnReferenceExpression.getPositionalOrdinal(). -
Uses of SourcePosition in dev.frostlake.executor.operators
Method parameters in dev.frostlake.executor.operators with type arguments of type SourcePositionModifier and TypeMethodDescriptionvoidProjectOperator.setExpressionOrigins(List<SourcePosition> expressionOrigins) Where each projection item began in the statement, index-aligned with the expressions.