Class Keyword

  • All Implemented Interfaces:
    java.io.Serializable

    public class Keyword
    extends ASTree
    Keyword.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      default serialVersionUID
      protected int tokenId  
    • Constructor Summary

      Constructors 
      Constructor Description
      Keyword​(int token)  
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        default serialVersionUID
        See Also:
        Constant Field Values
      • tokenId

        protected int tokenId
    • Constructor Detail

      • Keyword

        public Keyword​(int token)
    • Method Detail

      • get

        public int get()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class ASTree
      • 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.
        Specified by:
        accept in class ASTree
        Throws:
        CompileError