Class SessionVarExpression
java.lang.Object
dev.frostlake.executor.expressions.SessionVarExpression
- All Implemented Interfaces:
Expression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Accept a visitor for the visitor patternWhere 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.voidsetPosition(SourcePosition where) Record where the reference was written.
-
Constructor Details
-
SessionVarExpression
-
-
Method Details
-
getVarName
-
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.- Returns:
- the recorded position, or null when nothing stamped one
-
setPosition
Record where the reference was written.- Parameters:
where- its position within the expression's text
-
accept
Description copied from interface:ExpressionAccept a visitor for the visitor pattern- Specified by:
acceptin interfaceExpression
-