Package org.smtlib.impl
Class SMTExpr.Datatype
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.impl.SMTExpr.Datatype
- All Implemented Interfaces:
INode,IPos.IPosable,ISort.IDatatype
- Enclosing class:
SMTExpr
Represents a datatype body: a list of constructors and (for parametric forms) a list of sort parameter symbols.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<IExpr.IConstructor> protected List<IExpr.ISymbol> Fields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionDatatype(List<IExpr.IConstructor> constructors, List<IExpr.ISymbol> symbols) Creates a datatype body;symbolsis non-null only for parametric (par) forms. -
Method Summary
Modifier and TypeMethodDescription<T> TThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }symbols()Methods inherited from class org.smtlib.impl.Pos.Printable
toStringMethods inherited from class org.smtlib.impl.Pos.Posable
equals, hashCode, pos, setPosMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.smtlib.IPos.IPosable
pos, setPosMethods inherited from interface org.smtlib.ISort.IDatatype
toString
-
Field Details
-
constructors
-
symbols
-
-
Constructor Details
-
Datatype
Creates a datatype body;symbolsis non-null only for parametric (par) forms.
-
-
Method Details
-
constructors
- Specified by:
constructorsin interfaceISort.IDatatype
-
symbols
- Specified by:
symbolsin interfaceISort.IDatatype
-
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
-