|
DisjunctiveSortExpression.java
|
// FILE. . . . . /home/hak/hlt/src/hlt/osf/base/DisjunctiveSortExpression.java // EDIT BY . . . Hassan Ait-Kaci // ON MACHINE. . Hp-Dv7 // STARTED ON. . Mon Nov 05 19:13:27 2012
|
package hlt.osf.base; import hlt.osf.exec.Context; import hlt.language.util.ArrayList;
| This is the class of disjunctive sorts. It consists of a list of Strings denoting the sorts of its components. |
public class DisjunctiveSortExpression extends SortExpression
{
public DisjunctiveSortExpression (ArrayList names)
{
_names = names;
}
public DisjunctiveSortExpression (ArrayList names, Context context)
{
_names = names;
_context = context;
}
private ArrayList _names;
public ArrayList names ()
{
return _names;
}
public byte type ()
{
return _context.DIS();
}
public String displayForm ()
{
String form = _context.displayManager().displayFormManager().displaySortsForm(_names);
return isParenthesized() ? "("+form+")" : form;
}
}
This file was generated on Wed Jan 30 13:26:29 CET 2013 from file DisjunctiveSortExpression.java
by the hlt.language.tools.Hilite Java tool written by Hassan Aït-Kaci