public class Datatype extends java.lang.Object implements java.lang.Iterable<DatatypeConstructor>
Modifier and Type | Class and Description |
---|---|
class |
Datatype.ConstIterator |
Modifier and Type | Field and Description |
---|---|
protected long |
pointer |
Modifier and Type | Method and Description |
---|---|
void |
deletePointer() |
protected void |
deletePointer(long pointer) |
boolean |
equals(java.lang.Object dt)
Syntactic equality operator.
|
DatatypeConstructor |
getConstructor(int idx)
Get the datatype constructor at a given index.
|
DatatypeConstructor |
getConstructor(java.lang.String name)
Get the datatype constructor with the given name.
|
java.lang.String |
getName() |
int |
getNumConstructors() |
Sort[] |
getParameters() |
long |
getPointer() |
DatatypeSelector |
getSelector(java.lang.String name)
Get the datatype constructor with the given name.
|
int |
hashCode()
Get the hash value of a datatype.
|
boolean |
isCodatatype() |
boolean |
isFinite() |
boolean |
isNull() |
boolean |
isParametric() |
boolean |
isRecord() |
boolean |
isTuple() |
boolean |
isWellFounded()
Is this datatype well-founded? If this datatype is not a codatatype,
this returns false if there are no values of this datatype that are of
finite size.
|
java.util.Iterator<DatatypeConstructor> |
iterator() |
java.lang.String |
toString() |
protected java.lang.String |
toString(long pointer) |
protected void deletePointer(long pointer)
public boolean equals(java.lang.Object dt)
equals
in class java.lang.Object
dt
- The datatype to compare to for equality.public DatatypeConstructor getConstructor(int idx)
idx
- The index of the datatype constructor to return.public DatatypeConstructor getConstructor(java.lang.String name)
name
- The name of the datatype constructor.public DatatypeSelector getSelector(java.lang.String name)
name
- The name of the datatype selector.public java.lang.String getName()
public int getNumConstructors()
public Sort[] getParameters()
public boolean isParametric()
public boolean isCodatatype()
public boolean isTuple()
public boolean isRecord()
public boolean isFinite()
public boolean isWellFounded()
public boolean isNull()
protected java.lang.String toString(long pointer)
public java.util.Iterator<DatatypeConstructor> iterator()
iterator
in interface java.lang.Iterable<DatatypeConstructor>
public int hashCode()
hashCode
in class java.lang.Object
public long getPointer()
public void deletePointer()
public java.lang.String toString()
toString
in class java.lang.Object