api / org.gradle.api.reflect

Package org.gradle.api.reflect

Types

HasPublicType

interface HasPublicType

Allows a scriptable object, such as a project extension, to declare its preferred public type. The public type of an object is the one exposed to statically-typed consumers, such as Kotlin build scripts, by default.

TypeOf

abstract class TypeOf<T : Any>

Provides a way to preserve high-fidelity Type information on generic types. Capture a generic type with an anonymous subclass. For example:

new TypeOf<NamedDomainObjectContainer<ArtifactRepository>>() {}

Exceptions

ObjectInstantiationException

open class ObjectInstantiationException : RuntimeException

Thrown when an object cannot be instantiated.