Package org.smtlib.impl
Class Sort.ErrorDefinition
java.lang.Object
org.smtlib.impl.Pos.Posable
org.smtlib.impl.Pos.Printable
org.smtlib.impl.Sort.ErrorDefinition
- All Implemented Interfaces:
INode,IPos.IPosable,ISort.IDefinition,ISort.IErrorDefinition
- Enclosing class:
Sort
A placeholder sort definition used when a sort declaration is ill-formed, to suppress cascading errors.
-
Field Summary
FieldsFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionErrorDefinition(IExpr.IIdentifier id, String error, IPos pos) Creates an error placeholder for the given identifier, error message, and source position. -
Method Summary
Modifier and TypeMethodDescription<T> TThe accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }The error message describing why the definition is ill-formederrorPos()The source position of the errorA new sort expression that results from applying the sort symbol to a list of sort expressionsThe identifier for the sort symbolintintArity()The arity of the symbolMethods 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, setPos
-
Field Details
-
id
-
error
-
-
Constructor Details
-
ErrorDefinition
Creates an error placeholder for the given identifier, error message, and source position.
-
-
Method Details
-
errorMessage
Description copied from interface:ISort.IErrorDefinitionThe error message describing why the definition is ill-formed- Specified by:
errorMessagein interfaceISort.IErrorDefinition
-
errorPos
Description copied from interface:ISort.IErrorDefinitionThe source position of the error- Specified by:
errorPosin interfaceISort.IErrorDefinition
-
identifier
Description copied from interface:ISort.IDefinitionThe identifier for the sort symbol- Specified by:
identifierin 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
-
intArity
public int intArity()Description copied from interface:ISort.IDefinitionThe arity of the symbol- Specified by:
intArityin interfaceISort.IDefinition
-
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
-