Class Variable

java.lang.Object
com.webcodepro.applecommander.compiler.Variable

public class Variable extends Object
Contains information referring to a BASIC variable.
  • Field Details

  • Constructor Details

    • Variable

      public Variable(String name, int type, String value)
      Construct a Variable.
  • Method Details

    • getName

      public String getName()
      Answers with the variable name.
    • getType

      public int getType()
      Answers with the variable type.
    • isTypeString

      public boolean isTypeString()
      Answers true if this variable is string.
    • isTypeInteger

      public boolean isTypeInteger()
      Answers true if this variable is integer.
    • isTypeFloat

      public boolean isTypeFloat()
      Answers true if this variable is floating point.
    • isVariableType

      public boolean isVariableType()
      Answers true if this is a variable.
    • isNumber

      public boolean isNumber()
      Answers true if this is a number.
    • isConstantString

      public boolean isConstantString()
      Answers true if this is a string constant.
    • isConstantInteger

      public boolean isConstantInteger()
      Answers true if this is an integer constant.
    • isConstantFloat

      public boolean isConstantFloat()
      Answers true if this is a floating point constant.
    • isConstant

      public boolean isConstant()
      Answers true if this is a constant value.
    • getValue

      public String getValue()
      Return the value.