Class TemplatizedType


  • public final class TemplatizedType
    extends ProxyObjectType
    An object type with declared template types, such as Array<string>.
    • Method Detail

      • getCtorImplementedInterfaces

        public java.lang.Iterable<ObjectType> getCtorImplementedInterfaces()
        Description copied from class: ObjectType
        Gets the interfaces implemented by the ctor associated with this type. Intended to be overridden by subclasses.
        Overrides:
        getCtorImplementedInterfaces in class ProxyObjectType
      • getCtorExtendedInterfaces

        public java.lang.Iterable<ObjectType> getCtorExtendedInterfaces()
        Description copied from class: ObjectType
        Gets the interfaces extended by the interface associated with this type. Intended to be overridden by subclasses.
        Overrides:
        getCtorExtendedInterfaces in class ProxyObjectType
      • visit

        public <T> T visit​(Visitor<T> visitor)
        Description copied from class: JSType
        Visit this type with the given visitor.
        Overrides:
        visit in class ProxyObjectType
        Returns:
        the value returned by the visitor
        See Also:
        Visitor
      • getPropertyType

        public JSType getPropertyType​(java.lang.String propertyName)
        Description copied from class: ObjectType
        Gets the property type of the property whose name is given. If the underlying object does not have this property, the Unknown type is returned to indicate that no information is available on this property. This gets overridden by FunctionType for lazily-resolved call() and bind() functions.
        Overrides:
        getPropertyType in class ObjectType
        Returns:
        the property's type or UnknownType. This method never returns null.
      • getReferencedType

        public ObjectType getReferencedType()
        Returns:
        The referenced ObjectType wrapped by this TemplatizedType.