ParameterizedTypeTemplate (class)
public sealed ParameterizedTypeTemplate {inherits FormCompiler, ClassEnv}
Package: CURL.LANGUAGE.CORE-TYPES

A template for constructing new instances of a ParameterizedType.

Notes

See ParameterizedType.template and ParameterizedTypeTemplate.construct.

Properties
keyword-type-parameters:The keyword arguments for this type as an array of KeywordTemplateTypeParameter objects.
accessor public final ParameterizedTypeTemplate.keyword-type-parameters:{FastArray-of KeywordTemplateTypeParameter}
name:Returns the name of the type.
accessor public final ParameterizedTypeTemplate.name:String
package:Returns the package of the type.
accessor public final ParameterizedTypeTemplate.package:Package
positional-type-parameters:The positional arguments for this type as an array of PositionalTemplateTypeParameter objects.
accessor public final ParameterizedTypeTemplate.positional-type-parameters:{FastArray-of PositionalTemplateTypeParameter}
Properties inherited from ClassEnv: abstract?, access, final?, public?, sealed?, serializable?, shared?, value-class?
Properties inherited from TypeInfo: parameterized-class?
Methods
construct:Return a new type from this template parameterized according to the specified arguments.
public final {ParameterizedTypeTemplate.construct
    ...
}:ParameterizedType
object-describe:Describes an object in a way that is suitable for printing by the user.
public final {ParameterizedTypeTemplate.object-describe
    out:TextOutputStream,
    locale:Locale
}:void
Methods inherited from Object: object-describe-for-debugging, object-serialize

Property Details
keyword-type-parameters (accessor)
accessor public final ParameterizedTypeTemplate.keyword-type-parameters:{FastArray-of KeywordTemplateTypeParameter}

The keyword arguments for this type as an array of KeywordTemplateTypeParameter objects.



name (accessor)
accessor public final ParameterizedTypeTemplate.name:String

Returns the name of the type.



package (accessor)
accessor public final ParameterizedTypeTemplate.package:Package

Returns the package of the type.



positional-type-parameters (accessor)
accessor public final ParameterizedTypeTemplate.positional-type-parameters:{FastArray-of PositionalTemplateTypeParameter}

The positional arguments for this type as an array of PositionalTemplateTypeParameter objects.



Method Details
construct (method)
public final {ParameterizedTypeTemplate.construct
    ...
}:ParameterizedType

Return a new type from this template parameterized according to the specified arguments.

Notes

See ParameterizedTypeTemplate.keyword-type-parameters and ParameterizedTypeTemplate.positional-type-parameters.


object-describe (method)
public final {ParameterizedTypeTemplate.object-describe
    out:TextOutputStream,
    locale:Locale
}:void

Describes an object in a way that is suitable for printing by the user.

out: The stream to which the characters are sent.
locale: The Locale that controls how self is displayed.

Description

This method is generally invoked indirectly using the "%s" format key.

{format out = out, "%s", obj}
simply calls
{obj.object-describe out}.


For example, if u is a Url,
{u.object-describe os}
writes u's name to os.

The default implementation of this method has the effect of calling
{format out = out, locale = locale, "%v", obj }
(see format for details about the "%v" format key).