|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An identifier for datatypes. Identifiers are used to recognize the type of a data. Validity checks in operators rely on these type identifiers.
Nested Class Summary | |
static class |
IDatatype.UniversalDatatype
A universal datatype. |
Field Summary | |
static IDatatype |
UNIVERSAL
A universal datatype. |
Method Summary | |
java.lang.String |
getName()
Return the name of this identifier. |
java.lang.Class |
getReferencedClass()
Returns the class of the referenced datatype. |
boolean |
isCompatibleTo(IDatatype otherID)
Checks if this datatype is compatible to another datatype. |
boolean |
isEqualTo(IDatatype otherType)
Checks if this ID equals the given (other) ID. |
Field Detail |
public static final IDatatype UNIVERSAL
Method Detail |
public java.lang.String getName()
public java.lang.Class getReferencedClass()
public boolean isEqualTo(IDatatype otherType)
otherType
- data type to check
public boolean isCompatibleTo(IDatatype otherID)
public class DefaultInteger { ... } public class ExtendedInteger extends DefaultInteger { ... }
DefaultInteger integer = new DefaultInteger(); ExtendedInteger extInteger = new ExtendedInteger(); System.out.println( integer.getType().isCompatibleTo( extInteger.getType() ) ); System.out.println( extInteger.getType().isCompatibleTo( integer.getType() ) );
false true
otherID
- data type to check
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |