Class Variable


  • public abstract class Variable
    extends java.lang.Object
    Base class for variable type (local variables, formal parameters...).
    Version:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isFinal  
      private Token name  
      private Type type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Variable​(boolean isFinal, Type type, Token name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      Type getType()  
      boolean isFinal()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isFinal

        private boolean isFinal
      • type

        private Type type
      • name

        private Token name
    • Constructor Detail

      • Variable

        public Variable​(boolean isFinal,
                        Type type,
                        Token name)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getType

        public Type getType()
      • isFinal

        public boolean isFinal()