ClassContext

@Incubating interface ClassContext
com.android.build.api.instrumentation.ClassContext

Summary

Public methods

abstract ClassData?
loadClassData(className: String)

Loads the class data for the class with given className.

Properties

abstract ClassData

Contains information about the class that will be instrumented.

Public methods

loadClassData

abstract fun loadClassData(className: String): ClassData?

Loads the class data for the class with given className.

Returns null if a class named className couldn't be found in the runtime classpath of the class defined by the currentClassData.

Parameters
className: String the fully qualified name of the class, (e.g. "com.android.build.api.instrumentation.ClassContext")

Properties

currentClassData

abstract val currentClassData: ClassData

Contains information about the class that will be instrumented.