api / org.gradle.tooling.provider.model / ToolingModelBuilder / canBuild

canBuild

abstract fun canBuild(modelName: String): Boolean

Indicates whether this builder can construct the given model.

Parameters

modelName - The model name, usually the same as the name of the Java interface used by the client.

Return
true if this builder can construct the model, false if not.