Class Variable

  • All Implemented Interfaces:
    java.io.Serializable

    public class Variable
    extends Symbol
    Variable.
    See Also:
    Serialized Form
    • Constructor Detail

      • Variable

        public Variable​(java.lang.String sym,
                        Declarator d)
    • Method Detail

      • getDeclarator

        public Declarator getDeclarator()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Symbol
      • accept

        public void accept​(Visitor v)
                    throws CompileError
        Description copied from class: ASTree
        Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.
        Overrides:
        accept in class Symbol
        Throws:
        CompileError