|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.type.StructuredType
ptolemy.data.type.ArrayType
A class representing the type of an ArrayToken.
| Red (cxh) |
| Red (cxh) |
| Field Summary |
| Fields inherited from interface ptolemy.data.type.Type |
HASH_INVALID, HASH_MAX |
| Constructor Summary | |
ArrayType(Type elementType)
Construct a new ArrayType with the specified type for the array elements. |
|
| Method Summary | |
protected int |
_compare(StructuredType type)
Compare this type with the specified type. |
protected StructuredType |
_getRepresentative()
Return a static instance of ArrayType. |
protected StructuredType |
_greatestLowerBound(StructuredType type)
Return the greatest lower bound of this type with the specified type. |
protected StructuredType |
_leastUpperBound(StructuredType type)
Return the least Upper bound of this type with the specified type. |
java.lang.Object |
clone()
Return a deep copy of this ArrayType if it is a variable, or itself if it is a constant. |
Token |
convert(Token token)
Convert the argument token into an ArrayToken having this type, if losslessly conversion can be done. |
boolean |
equals(java.lang.Object object)
Determine if the argument represents the same ArrayType as this object. |
Type |
getElementType()
Return the type of the array elements. |
InequalityTerm |
getElementTypeTerm()
Return the InequalityTerm representing the element type. |
java.lang.Class |
getTokenClass()
Return the class for tokens that this type represents. |
int |
hashCode()
Return a hash code value for this object. |
void |
initialize(Type t)
Set the elements that have declared type BaseType.UNKNOWN (the leaf type variable) to the specified type. |
boolean |
isCompatible(Type type)
Test if the argument type is compatible with this type. |
boolean |
isConstant()
Test if this ArrayType is a constant. |
boolean |
isInstantiable()
Determine if this type corresponds to an instantiable token class. |
boolean |
isSubstitutionInstance(Type type)
Return true if the specified type is a substitution instance of this type. |
java.lang.String |
toString()
Return the string representation of this type. |
void |
updateType(StructuredType newType)
Update this Type to the specified ArrayType. |
| Methods inherited from class ptolemy.data.type.StructuredType |
getTypeHash |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ArrayType(Type elementType)
java.lang.IllegalArgumentException - If the argument is null.| Method Detail |
public java.lang.Object clone()
clone in interface Typeclone in class StructuredType
public Token convert(Token token)
throws IllegalActionException
token - A token.
IllegalActionException - If lossless conversion
cannot be done.public boolean equals(java.lang.Object object)
object - Another object.
public Type getElementType()
public InequalityTerm getElementTypeTerm()
InequalityTermpublic java.lang.Class getTokenClass()
public int hashCode()
public void initialize(Type t)
initialize in class StructuredTypet - the type to set the leaf type variable to.public boolean isCompatible(Type type)
type - A Type.
convert(ptolemy.data.Token)public boolean isConstant()
public boolean isInstantiable()
public boolean isSubstitutionInstance(Type type)
type - A Type.
Type.isSubstitutionInstance(ptolemy.data.type.Type)public java.lang.String toString()
public void updateType(StructuredType newType)
throws IllegalActionException
updateType in class StructuredTypenewType - A StructuredType.
IllegalActionException - If the specified type is not an
ArrayType or it does not have the same structure as this one.protected int _compare(StructuredType type)
_compare in class StructuredTypetype - an ArrayType.
java.lang.IllegalArgumentException - If the specified type is
not an ArrayType.protected StructuredType _getRepresentative()
_getRepresentative in class StructuredTypeprotected StructuredType _greatestLowerBound(StructuredType type)
_greatestLowerBound in class StructuredTypetype - an ArrayType.
java.lang.IllegalArgumentException - If the specified type is
not an ArrayType.protected StructuredType _leastUpperBound(StructuredType type)
_leastUpperBound in class StructuredTypetype - an ArrayType.
java.lang.IllegalArgumentException - If the specified type is
not an ArrayType.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||