Package org.smtlib.impl
Class Sort.Family
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.impl.Sort.Family
- All Implemented Interfaces:
INode,IPos.IPosable,ISort.IDefinition,ISort.IFamily
- Enclosing class:
Sort
Represents a new sort symbol, with a given identifier and arity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IExpr.INumeralprotected List<IExpr.IAttribute<?>> protected IExpr.IIdentifierFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionFamily(IExpr.IIdentifier identifier, IExpr.INumeral arity, List<IExpr.IAttribute<?>> attributes) Creates a sort family with the given identifier, arity, and attributes (null or empty if none). -
Method Summary
Modifier and TypeMethodDescription<T> TThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }arity()The arity of the sort symbolList<IExpr.IAttribute<?>> Any attributes declared on this sort symbol (e.g.booleanA new sort expression that results from applying the sort symbol to a list of sort expressionsinthashCode()The unique identifier for this sort symbolintintArity()The arity of the symbolMethods inherited from class org.smtlib.impl.Pos.Printable
toStringMethods inherited from class org.smtlib.impl.Pos.Posable
pos, setPosMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.smtlib.IPos.IPosable
pos, setPos
-
Field Details
-
identifier
-
arity
-
attributes
-
-
Constructor Details
-
Family
public Family(IExpr.IIdentifier identifier, IExpr.INumeral arity, List<IExpr.IAttribute<?>> attributes) Creates a sort family with the given identifier, arity, and attributes (null or empty if none).
-
-
Method Details
-
identifier
Description copied from interface:ISort.IFamilyThe unique identifier for this sort symbol- Specified by:
identifierin interfaceISort.IDefinition- Specified by:
identifierin interfaceISort.IFamily
-
arity
Description copied from interface:ISort.IFamilyThe arity of the sort symbol- Specified by:
arityin interfaceISort.IFamily
-
attributes
Description copied from interface:ISort.IFamilyAny attributes declared on this sort symbol (e.g. :right-assoc, as on -> in HO-Core.smt2); empty (never null) if there are none.- Specified by:
attributesin interfaceISort.IFamily
-
intArity
public int intArity()Description copied from interface:ISort.IDefinitionThe arity of the symbol- Specified by:
intArityin interfaceISort.IDefinition
-
eval
Description copied from interface:ISort.IDefinitionA new sort expression that results from applying the sort symbol to a list of sort expressions- Specified by:
evalin interfaceISort.IDefinition
-
equals
- Overrides:
equalsin classPos.Posable
-
hashCode
public int hashCode()- Overrides:
hashCodein classPos.Posable
-
accept
Description copied from interface:INodeThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }- Specified by:
acceptin interfaceINode- Type Parameters:
T- the return type desired from the visit methods- Parameters:
v- the visitor class- Returns:
- the value returned by the visit method
- Throws:
IVisitor.VisitorException
-