Class SessionVarExpression

java.lang.Object
dev.frostlake.executor.expressions.SessionVarExpression
All Implemented Interfaces:
Expression

public class SessionVarExpression extends Object implements Expression
  • Constructor Details

    • SessionVarExpression

      public SessionVarExpression(String varName)
  • Method Details

    • getVarName

      public String getVarName()
    • getPosition

      public SourcePosition 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

      public void setPosition(SourcePosition where)
      Record where the reference was written.
      Parameters:
      where - its position within the expression's text
    • accept

      public <T> T accept(ExpressionVisitor<T> visitor)
      Description copied from interface: Expression
      Accept a visitor for the visitor pattern
      Specified by:
      accept in interface Expression