Class VoidType

  • All Implemented Interfaces:
    IDatatype, IDatatypeVisitable

    public class VoidType
    extends BasisDatatype
    The AnyType is the "Object" of OCL, a type to which all types are compatible. We need this type to specify generic operations (return values)
    Author:
    Holger Eichelberger
    • Constructor Detail

      • VoidType

        private VoidType()
        Constructor for a new VoidType.
    • Method Detail

      • isAssignableFrom

        public boolean isAssignableFrom​(IDatatype type)
        Description copied from class: BasisDatatype
        Determines if the data type represented by this object is either the same as, or is a supertype of type.
        Specified by:
        isAssignableFrom in interface IDatatype
        Overrides:
        isAssignableFrom in class BasisDatatype
        Parameters:
        type - the type being checked
        Returns:
        true if this type is either the same or a supertype of type, true else