ButnotSortExpression.java

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



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



package hlt.osf.base;



This is the class of a 'butnot' sort expression. It consists of two sort expressions which are its arguments.


public class ButnotSortExpression extends BinarySortExpression
  {
    public ButnotSortExpression (SortExpression lhs, SortExpression rhs)
    {
      super(lhs,rhs);
      _context = lhs.context();
    }

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

    public String displayForm ()
    {
      String form = _lhs.displayForm() + " \\ " + _rhs.displayForm();
      return isParenthesized() ? "("+form+")" : form;
    }

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

      ButnotSortExpression o = (ButnotSortExpression)other;
      
      return _lhs.equals(o.lhs()) && _rhs.equals(o.rhs());
    }
  }


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