Class IntConst

  • All Implemented Interfaces:
    java.io.Serializable

    public class IntConst
    extends ASTree
    Integer constant.
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

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

        protected long value
      • type

        protected int type
    • Constructor Detail

      • IntConst

        public IntConst​(long v,
                        int tokenId)
    • Method Detail

      • get

        public long get()
      • set

        public void set​(long v)
      • getType

        public int getType()
      • 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
      • compute

        public ASTree compute​(int op,
                              ASTree right)