Package ptolemy.data.type
Class AssociativeType
- java.lang.Object
-
- ptolemy.data.type.StructuredType
-
- ptolemy.data.type.AssociativeType
-
- All Implemented Interfaces:
Type
- Direct Known Subclasses:
RecordType
,UnionType
public abstract class AssociativeType extends StructuredType
This class represents structures that store (key, value) pairs. It prescribes a get() method that retrieves the type of the value associated with a given key.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Marten Lohstroh
- Pt.AcceptedRating:
- Red
- Pt.ProposedRating:
- Red (marten)
-
-
Field Summary
-
Fields inherited from class ptolemy.data.type.StructuredType
MAXDEPTHBOUND
-
Fields inherited from interface ptolemy.data.type.Type
HASH_INVALID
-
-
Constructor Summary
Constructors Constructor Description AssociativeType()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Type
get(java.lang.String label)
Return the type of the specified label.-
Methods inherited from class ptolemy.data.type.StructuredType
_compare, _getRepresentative, _greatestLowerBound, _leastUpperBound, add, clone, depth, divide, getTypeHash, initialize, isAbstract, modulo, multiply, one, subtract, updateType, zero
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ptolemy.data.type.Type
convert, equals, getTokenClass, isCompatible, isConstant, isInstantiable, isSubstitutionInstance, toString
-
-
-
-
Method Detail
-
get
public abstract Type get(java.lang.String label)
Return the type of the specified label. If this type does not contain the specified label, return null.- Parameters:
label
- The specified label.- Returns:
- a Type.
-
-