ClassContext

Added in 4.2.0

interface ClassContext


Summary

Public functions

ClassData?
loadClassData(className: String)

Loads the class data for the class with given className.

Public properties

ClassData

Contains information about the class that will be instrumented.

Public functions

loadClassData

Added in 4.2.0
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")

Public properties

currentClassData

Added in 4.2.0
val currentClassDataClassData

Contains information about the class that will be instrumented.