`Constant.java`

    // FILE. . . . . /home/hak/hlt/src/hlt/osfv2/base/Constant.java
    // EDIT BY . . . Hassan Ait-Kaci
    // ON MACHINE. . Hak-Laptop
    // STARTED ON. . Mon Sep 02 16:25:40 2013

This is class for constants of a built-in sort. It defines constants of built-in sorts, such as integers, floating-point numbers, booleans, strings, . It is an abstract class because it does not itself carry the value of such an constant. This is done by a concrete subclass of `Constant`, depending on the type of value of the constant. Here are the concrete subclasses of `Constant`: `IntegerConstant`, the class of objects carrying an integer value (i.e., an `int`); `CharConstant`, the class of objects carrying a character value (i.e., a `char`); `FloatConstant`, the class of objects carrying a double-precision floating point value (i.e., a `double`); `StringConstant`, the class of objects carrying a `string` value; `BooleanConstant`, the class of objects carrying a `boolean` value (i.e., `true` or `false`);
Author: |  | Hassan Aït-Kaci
Copyright: |  | © by the author
Version: |  | Last modified on Tue Jan 21 08:05:42 2014 by hak

    package hlt.osf.base;

    public abstract class Constant
      {
        protected Sort _sort;

        public Sort sort ()
        {
          return _sort;
        }

        public boolean isInteger ()
        {
          return _sort.name == "int";
        }

        public boolean isChar ()
        {
          return _sort.name == "char";
        }

        public boolean isFloat ()
        {
          return _sort.name == "float";
        }

        public boolean isString ()
        {
          return _sort.name == "string";
        }

        public boolean isBoolean ()
        {
          return _sort.name == "boolean";
        }

        public abstract String displayForm ();

      }

This file was generated on Tue Jan 21 09:56:10 CET 2014 from file `Constant.java`
by the `hlt.language.tools.Hilite` Java tool written by Hassan Aït-Kaci