Class DeclareStatement

java.lang.Object
dev.frostlake.executor.procedural.Statement
dev.frostlake.executor.procedural.DeclareStatement

public class DeclareStatement extends Statement
  • Constructor Details

    • DeclareStatement

      public DeclareStatement(String variableName, Object defaultValue)
    • DeclareStatement

      public DeclareStatement(String variableName, Object defaultValue, DataType declaredType)
  • Method Details

    • getVariableName

      public String getVariableName()
    • getDefaultValue

      public Object getDefaultValue()
    • getDeclaredType

      public DataType getDeclaredType()
      The variable's declared type, or null when the declaration didn't carry one.
    • setInitializerAt

      public void setInitializerAt(int line, int position)
      Where the initialiser expression stood, so a coercion fault can anchor on it.
    • getInitializerLine

      public int getInitializerLine()
    • getInitializerPosition

      public int getInitializerPosition()