com.google.testing.instrumentation
Interface Instrumenter
- All Known Implementing Classes:
- TestInstrumenter
public interface Instrumenter
An object that transforms the byte code that defines a class.
- Author:
- alasdair.mackintosh@gmail.com (Alasdair Mackintosh)
|
Method Summary |
byte[] |
instrument(String className,
byte[] classData)
Transforms an array of bytes that defines a class. |
instrument
byte[] instrument(String className,
byte[] classData)
- Transforms an array of bytes that defines a class.
- Parameters:
className - the name of the class being defined.classData - the bytes that make up the class data.
- Returns:
- the transformed bytecode. A given Instrumenter may chose not to
transform all classes, in which case it may just return the given
classData.
Copyright © 2013. All Rights Reserved.