|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.type.BaseType
The type of base token classes. This class provides a type safe enumeration of base types.
| Red |
| Red (yuhong) |
| Nested Class Summary | |
static class |
BaseType.BooleanType
The boolean data type |
static class |
BaseType.ComplexType
The complex data type |
static class |
BaseType.DoubleType
The double data type |
static class |
BaseType.EventType
The event data type |
static class |
BaseType.GeneralType
The general data type: The top of the lattice. |
static class |
BaseType.IntType
The integer data type |
static class |
BaseType.LongType
The long integer data type |
static class |
BaseType.NumericalType
The numerical data type |
static class |
BaseType.ObjectType
The object data type |
static class |
BaseType.ScalarType
The scalar data type: The least upper bound of all the scalar types. |
static class |
BaseType.StringType
The string data type |
static class |
BaseType.UnknownType
The bottom element of the data type lattice. |
static class |
BaseType.UnsignedByteType
The unsigned byte data type |
static class |
BaseType.XmlTokenType
The XmlToken data type |
| Field Summary | |
static BaseType.BooleanType |
BOOLEAN
|
static UnsizedMatrixType.BooleanMatrixType |
BOOLEAN_MATRIX
|
static BaseType.ComplexType |
COMPLEX
|
static UnsizedMatrixType.ComplexMatrixType |
COMPLEX_MATRIX
|
static BaseType.DoubleType |
DOUBLE
|
static UnsizedMatrixType.DoubleMatrixType |
DOUBLE_MATRIX
|
static BaseType.EventType |
EVENT
|
static FixType |
FIX
The fix data type |
static UnsizedMatrixType.FixMatrixType |
FIX_MATRIX
|
static BaseType.GeneralType |
GENERAL
|
static BaseType.IntType |
INT
|
static UnsizedMatrixType.IntMatrixType |
INT_MATRIX
|
static BaseType.LongType |
LONG
|
static UnsizedMatrixType.LongMatrixType |
LONG_MATRIX
|
static TopMatrixType |
MATRIX
The matrix data type: The least upper bound of all the matrix types. |
static BaseType.NumericalType |
NUMERICAL
|
static BaseType.ObjectType |
OBJECT
|
static BaseType.ScalarType |
SCALAR
|
static BaseType.StringType |
STRING
|
static BaseType.UnknownType |
UNKNOWN
|
static BaseType.UnsignedByteType |
UNSIGNED_BYTE
|
static BaseType.XmlTokenType |
XMLTOKEN
|
| Fields inherited from interface ptolemy.data.type.Type |
HASH_INVALID, HASH_MAX |
| Method Summary | |
java.lang.Object |
clone()
Return this, that is, return the reference to this object. |
abstract Token |
convert(Token t)
Convert the specified token to a token having the type represented by this object. |
boolean |
equals(java.lang.Object object)
Determine if the argument represents the same BaseType as this object. |
static Type |
forClassName(java.lang.String className)
Return an instance of this class that corresponds to tokens of a class with the given name, or null if none exists. |
static Type |
forName(java.lang.String name)
Return an instance of this class with the specified name, or null if none exists. |
java.lang.Class |
getTokenClass()
Return the class for tokens that this basetype represents. |
int |
getTypeHash()
Return a perfect hash for this type. |
int |
hashCode()
Return a hash code value for this object. |
boolean |
isCompatible(Type type)
Test if the argument type is compatible with this type. |
boolean |
isConstant()
Test if this Type is UNKNOWN. |
boolean |
isInstantiable()
Determine if this type corresponds to an instantiable token classes. |
boolean |
isSubstitutionInstance(Type type)
Return true if the argument is a substitution instance of this type. |
java.lang.String |
toString()
Return the string representation of this type. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final BaseType.UnknownType UNKNOWN
public static final BaseType.BooleanType BOOLEAN
public static final UnsizedMatrixType.BooleanMatrixType BOOLEAN_MATRIX
public static final BaseType.UnsignedByteType UNSIGNED_BYTE
public static final BaseType.ComplexType COMPLEX
public static final UnsizedMatrixType.ComplexMatrixType COMPLEX_MATRIX
public static final BaseType.DoubleType DOUBLE
public static final UnsizedMatrixType.DoubleMatrixType DOUBLE_MATRIX
public static final FixType FIX
public static final UnsizedMatrixType.FixMatrixType FIX_MATRIX
public static final BaseType.IntType INT
public static final UnsizedMatrixType.IntMatrixType INT_MATRIX
public static final BaseType.LongType LONG
public static final UnsizedMatrixType.LongMatrixType LONG_MATRIX
public static final TopMatrixType MATRIX
public static final BaseType.NumericalType NUMERICAL
public static final BaseType.ObjectType OBJECT
public static final BaseType.XmlTokenType XMLTOKEN
public static final BaseType.ScalarType SCALAR
public static final BaseType.StringType STRING
public static final BaseType.GeneralType GENERAL
public static final BaseType.EventType EVENT
| Method Detail |
public java.lang.Object clone()
clone in interface Type
public abstract Token convert(Token t)
throws IllegalActionException
convert in interface Typet - A token.
IllegalActionException - If lossless conversion cannot
be done.public boolean equals(java.lang.Object object)
equals in interface Typeobject - Another object.
public static Type forClassName(java.lang.String className)
public static Type forName(java.lang.String name)
public java.lang.Class getTokenClass()
getTokenClass in interface Typepublic int getTypeHash()
getTypeHash in interface Typepublic int hashCode()
public boolean isCompatible(Type type)
isCompatible in interface Typetype - An instance of Type.
public boolean isConstant()
isConstant in interface Typepublic boolean isInstantiable()
isInstantiable in interface Typepublic boolean isSubstitutionInstance(Type type)
isSubstitutionInstance in interface Typetype - A Type.
public java.lang.String toString()
toString in interface Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||