NotSortExpression.java

// FILE. . . . . /home/hak/hlt/src/hlt/osf/base/NotSortExpression.java
// EDIT BY . . . Hassan Ait-Kaci
// ON MACHINE. . Hak-Laptop
// STARTED ON. . Mon Sep 02 09:15:10 2013



Copyright:  © by the author
Author:  Hassan Aït-Kaci
Version:  Last modified on Mon May 18 10:22:04 2015 by hak



package hlt.osf.base;



This is the class of a 'not' sort expression. It consists of a sort expression which is its argument.


public class NotSortExpression extends SortExpression
  {
    public NotSortExpression (SortExpression arg)
    {
      _arg = arg;
      _context = arg.context();
    }

    private SortExpression _arg;

    public SortExpression arg ()
    {
      return _arg;
    }

    public byte type ()
    {
      return _context.NOT();
    }

    public String displayForm ()
    {
      String form = "!"+_arg.displayForm();
      return isParenthesized() ? "("+form+")" : form;
    }

    public boolean equals (Object other)
    {
      if (!(other instanceof NotSortExpression))
	return false;

      return _arg.equals(((NotSortExpression)other).arg());
    }
  }


This file was generated on Mon Sep 09 09:17:59 PDT 2019 from file NotSortExpression.java
by the hlt.language.tools.Hilite Java tool written by Hassan Aït-Kaci