public class SortSymbol
extends java.lang.Object
Array IndexSort ElemSort
is parametric over the index and
element sort. The sort symbol represents only the name, i.e., Array and
stores the number of sort parameters. Then several objects of type Sort
can be instantiated with different sort parameters.Modifier and Type | Method and Description |
---|---|
void |
checkArity(java.math.BigInteger[] indices,
int arity)
Checks whether the indices and the arity match and the sort can be
created.
|
java.lang.String |
getName()
Returns the name of this sort.
|
Sort |
getSort(java.math.BigInteger[] indices,
Sort... args) |
int |
hashCode() |
boolean |
isArray()
Check if this sort symbol corresponds to an array sort.
|
boolean |
isIntern()
Checks if the sort is internal, i.e., defined by the logic.
|
boolean |
isNumeric()
Check if this sort symbol corresponds to a numeric sort.
|
boolean |
isParametric()
Checks if this is a sort variable.
|
java.lang.String |
toString()
Returns a string representation of the sort symbol, as it would be
used for declare-sort command.
|
public boolean isIntern()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public void checkArity(java.math.BigInteger[] indices, int arity)
indices
- The indices.arity
- The number of sort parameters.java.lang.IllegalArgumentException
- if the sort parameters or the index
do not match.public boolean isParametric()
public boolean isNumeric()
public boolean isArray()
public int hashCode()
hashCode
in class java.lang.Object