Package ptolemy.data.type
Class BaseType.UnsignedByteType
- java.lang.Object
-
- ptolemy.data.type.BaseType
-
- ptolemy.data.type.BaseType.UnsignedByteType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.data.type.BaseType
BaseType.ArrayBottomType, BaseType.BooleanType, BaseType.ComplexType, BaseType.DateType, BaseType.DoubleType, BaseType.EventType, BaseType.FloatType, BaseType.GeneralType, BaseType.IntType, BaseType.LongType, BaseType.NilType, BaseType.PetiteType, BaseType.ScalarType, BaseType.ShortType, BaseType.StringType, BaseType.UnknownType, BaseType.UnsignedByteType, BaseType.UnsizedFixType, BaseType.XmlTokenType
-
-
Field Summary
-
Fields inherited from class ptolemy.data.type.BaseType
ACTOR, ARRAY_BOTTOM, BOOLEAN, BOOLEAN_MATRIX, COMPLEX, COMPLEX_MATRIX, DATE, DOUBLE, DOUBLE_MATRIX, EVENT, FIX, FIX_MATRIX, FLOAT, GENERAL, INT, INT_MATRIX, LONG, LONG_MATRIX, MATRIX, NIL, OBJECT, PETITE, RECORD, SCALAR, SHORT, SIZED_FIX, STRING, UNKNOWN, UNSIGNED_BYTE, UNSIZED_FIX, XMLTOKEN
-
Fields inherited from interface ptolemy.data.type.Type
HASH_INVALID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tokenconvert(Token t)Convert the specified token to a token having the type represented by this object.intgetTypeHash()Return a perfect hash for this type.-
Methods inherited from class ptolemy.data.type.BaseType
add, addType, clone, divide, equals, forClassName, forName, getTokenClass, hashCode, isAbstract, isCompatible, isConstant, isInstantiable, isSubstitutionInstance, modulo, multiply, one, subtract, toString, zero
-
-
-
-
Method Detail
-
convert
public Token convert(Token t) throws IllegalActionException
Description copied from class:BaseTypeConvert the specified token to a token having the type represented by this object.- Specified by:
convertin interfaceType- Specified by:
convertin classBaseType- Parameters:
t- A token.- Returns:
- A token.
- Throws:
IllegalActionException- If lossless conversion cannot be done.
-
getTypeHash
public int getTypeHash()
Description copied from class:BaseTypeReturn a perfect hash for this type. This number corresponds uniquely to a particular type, and is used to improve performance of certain operations in the TypeLattice class. All instances of a particular type (e.g. integer array) must return the same number. Types that return HASH_INVALID will not have results in TypeLattice cached. Note that it is safer to return HASH_INVALID, than to return a number that is not unique, or different number for the same type from different instances. This base class returns HASH_INVALID.- Specified by:
getTypeHashin interfaceType- Overrides:
getTypeHashin classBaseType- Returns:
- A number greater than or equal to 0, or HASH_INVALID.
-
-