|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttom.engine.adt.typeconstraints.TypeConstraintsAbstractType
public abstract class TypeConstraintsAbstractType
This class provides a skeletal implementation of terms When implementing the interface shared.SharedObjectWithID, the objects are immutable and can be compared in constant time, using ==.
Field Summary | |
---|---|
protected static aterm.ATermFactory |
atermFactory
|
protected static shared.SharedObjectFactory |
factory
|
Constructor Summary | |
---|---|
protected |
TypeConstraintsAbstractType()
Sole constructor. |
Method Summary | |
---|---|
abstract int |
compareTo(Object o)
Compares two terms. |
abstract int |
compareToLPO(Object o)
Compares two terms. |
protected static boolean |
convertATermToBoolean(aterm.ATerm at,
ATermConverter atConv)
Converts an ATerm into a boolean |
protected static char |
convertATermToChar(aterm.ATerm at,
ATermConverter atConv)
Converts an ATerm into a char |
protected static double |
convertATermToDouble(aterm.ATerm at,
ATermConverter atConv)
Converts an ATerm into a double |
protected static float |
convertATermToFloat(aterm.ATerm at,
ATermConverter atConv)
Converts an ATerm into a float |
protected static int |
convertATermToInt(aterm.ATerm at,
ATermConverter atConv)
Converts an ATerm into an int |
protected static long |
convertATermToLong(aterm.ATerm at,
ATermConverter atConv)
Converts an ATerm into a long |
protected static String |
convertATermToString(aterm.ATerm at,
ATermConverter atConv)
Converts an ATerm into a string |
int |
getUniqueIdentifier()
Returns an integer that identifies this term in a unique way. |
void |
setUniqueIdentifier(int uniqueID)
Modifies the integer that identifies this term in a unique way. |
abstract String |
symbolName()
Returns a string representation of the top symbol of this term. |
abstract aterm.ATerm |
toATerm()
Returns an ATerm representation of this term. |
String |
toString()
Returns a string representation of this term. |
abstract void |
toStringBuilder(StringBuilder buffer)
Appends a string representation of this term to the buffer given as argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface shared.SharedObject |
---|
duplicate, equivalent, hashCode |
Methods inherited from interface tom.library.sl.Visitable |
---|
getChildAt, getChildCount, getChildren, setChildAt, setChildren |
Field Detail |
---|
protected static final shared.SharedObjectFactory factory
protected static final aterm.ATermFactory atermFactory
Constructor Detail |
---|
protected TypeConstraintsAbstractType()
Method Detail |
---|
public abstract aterm.ATerm toATerm()
public abstract String symbolName()
public String toString()
toString
in class Object
public abstract void toStringBuilder(StringBuilder buffer)
buffer
- the buffer to which a string represention of this term is appended.public abstract int compareTo(Object o)
compareTo
in interface Comparable
o
- object to which this term is compared
public abstract int compareToLPO(Object o)
o
- object to which this term is compared
protected static String convertATermToString(aterm.ATerm at, ATermConverter atConv)
at
- ATerm to convertatConv
- converter applied to the ATerm before coersion
protected static int convertATermToInt(aterm.ATerm at, ATermConverter atConv)
at
- ATerm to convertatConv
- converter applied to the ATerm before coersion
protected static float convertATermToFloat(aterm.ATerm at, ATermConverter atConv)
at
- ATerm to convertatConv
- converter applied to the ATerm before coersion
protected static double convertATermToDouble(aterm.ATerm at, ATermConverter atConv)
at
- ATerm to convertatConv
- converter applied to the ATerm before coersion
protected static long convertATermToLong(aterm.ATerm at, ATermConverter atConv)
at
- ATerm to convertatConv
- converter applied to the ATerm before coersion
protected static boolean convertATermToBoolean(aterm.ATerm at, ATermConverter atConv)
at
- ATerm to convertatConv
- converter applied to the ATerm before coersion
protected static char convertATermToChar(aterm.ATerm at, ATermConverter atConv)
at
- ATerm to convertatConv
- converter applied to the ATerm before coersion
public int getUniqueIdentifier()
getUniqueIdentifier
in interface shared.SharedObjectWithID
public void setUniqueIdentifier(int uniqueID)
setUniqueIdentifier
in interface shared.SharedObjectWithID
uniqueID
- integer that identifies this term in a unique way.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |