public class DatatypeConstructorDecl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
pointer |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelector(String name,
Sort sort)
Add datatype selector declaration.
|
void |
addSelectorSelf(String name)
Add datatype selector declaration whose codomain type is the datatype
itself.
|
void |
addSelectorUnresolved(String name,
String unresDataypeName)
Add datatype selector declaration whose codomain sort is an unresolved
datatype with the given name.
|
void |
deletePointer() |
protected void |
deletePointer(long pointer) |
boolean |
equals(Object d)
Syntactic equality operator.
|
long |
getPointer() |
int |
hashCode()
Get the hash value of a datatype constructor declaration.
|
boolean |
isNull() |
String |
toString() |
protected String |
toString(long pointer) |
protected void deletePointer(long pointer)
public boolean equals(Object d)
public void addSelector(String name, Sort sort)
name - The name of the datatype selector declaration to add.sort - The codomain sort of the datatype selector declaration to add.public void addSelectorSelf(String name)
name - The name of the datatype selector declaration to add.public void addSelectorUnresolved(String name, String unresDataypeName)
name - The name of the datatype selector declaration to add.unresDataypeName - The name of the unresolved datatype. The codomain
of the selector will be the resolved datatype with
the given name.public boolean isNull()
protected String toString(long pointer)
public int hashCode()
public long getPointer()
public void deletePointer()