ClassContext

public interface ClassContext


Summary

Public methods

abstract @NonNull ClassData

Contains information about the class that will be instrumented.

abstract ClassData

Loads the class data for the class with given className.

Public methods

getCurrentClassData

abstract @NonNull ClassData getCurrentClassData()

Contains information about the class that will be instrumented.

loadClassData

abstract ClassData loadClassData(@NonNull String className)

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
@NonNull String className

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