Class AnyType

    • Method Detail

      • getTypeHierarchy

        public Type[] getTypeHierarchy()
        Description copied from interface: Type
        Gets the entire hierarchy of super-types.

        The array is ordered as follows:

        • the direct super type is the first element,
        • the super super type is the second element,
        • and so on.

        The returned array is never null. An empty array is returned in the case of ANY type.

        Specified by:
        getTypeHierarchy in interface Type
        Overrides:
        getTypeHierarchy in class AbstractType
        Returns:
        an array containing the supertypes of this type
      • isAnyType

        public boolean isAnyType()
        Description copied from interface: Type
        Tests whether this type is the ANY type.
        Specified by:
        isAnyType in interface Type
        Overrides:
        isAnyType in class AbstractType
        Returns:
        true if it is the ANY type, false otherwise
      • validate

        public boolean validate​(Object object)
        Description copied from interface: Type
        Tests whether the given object is of this type.
        Specified by:
        validate in interface Type
        Overrides:
        validate in class AbstractType
        Parameters:
        object - the object to test
        Returns:
        true if the given object if of this type, false otherwise
      • convert

        public Object convert​(Object object)
        Description copied from interface: Type
        Converts the given value to an object compatible with the associated type.
        Parameters:
        object - the value to convert
        Returns:
        the converted value