Class 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)
    • Constructor Detail

      • AssociativeType

        public AssociativeType()
    • 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.