Package org.smtlib.impl
Class Sort.Abbreviation
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.impl.Sort.Abbreviation
- All Implemented Interfaces:
INode,IPos.IPosable,ISort.IAbbreviation,ISort.IDefinition
- Enclosing class:
Sort
Implements a Sort abbreviation (parameterized definition, possibly with no parameters)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IExpr.IIdentifierprotected List<ISort.IParameter> protected ISortFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionAbbreviation(IExpr.IIdentifier identifier, List<ISort.IParameter> parameters, ISort sortExpression) Creates a sort abbreviation with the given identifier, parameter list, and defining expression. -
Method Summary
Modifier and TypeMethodDescription<T> TThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }booleanA new sort expression that results from applying the sort symbol to a list of sort expressionsinthashCode()The identifier of the abbreviationintintArity()The arity of the symbolThe list of parameters of the abbreviation (possibly empty, but not null)The sort expression that the abbreviation represents, presumably using the given parametersMethods 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
-
parameters
-
sortExpression
-
-
Constructor Details
-
Abbreviation
public Abbreviation(IExpr.IIdentifier identifier, List<ISort.IParameter> parameters, ISort sortExpression) Creates a sort abbreviation with the given identifier, parameter list, and defining expression.
-
-
Method Details
-
identifier
Description copied from interface:ISort.IAbbreviationThe identifier of the abbreviation- Specified by:
identifierin interfaceISort.IAbbreviation- Specified by:
identifierin interfaceISort.IDefinition
-
parameters
Description copied from interface:ISort.IAbbreviationThe list of parameters of the abbreviation (possibly empty, but not null)- Specified by:
parametersin interfaceISort.IAbbreviation
-
sortExpression
Description copied from interface:ISort.IAbbreviationThe sort expression that the abbreviation represents, presumably using the given parameters- Specified by:
sortExpressionin interfaceISort.IAbbreviation
-
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
-