public class JavassistInstrumenter extends AbstractInstrumenter
AbstractInstrumenter.CustomFieldFilter
Instrumenter.Options
logger, options
Constructor and Description |
---|
JavassistInstrumenter(Logger logger,
Instrumenter.Options options) |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.util.Set<java.io.File> files)
The main instrumentation entry point.
|
protected ClassDescriptor |
getClassDescriptor(byte[] bytecode)
Given the bytecode of a java class, retrieve the descriptor for that class.
|
protected ClassTransformer |
getClassTransformer(ClassDescriptor descriptor,
java.util.Set classNames)
Create class transformer for the class.
|
checkMagic, isClassFile, isJarFile, processClassFile, processFile, processJarFile
public JavassistInstrumenter(Logger logger, Instrumenter.Options options)
protected ClassDescriptor getClassDescriptor(byte[] bytecode) throws java.io.IOException
AbstractInstrumenter
getClassDescriptor
in class AbstractInstrumenter
bytecode
- The class bytecode.java.io.IOException
protected ClassTransformer getClassTransformer(ClassDescriptor descriptor, java.util.Set classNames)
AbstractInstrumenter
getClassTransformer
in class AbstractInstrumenter
descriptor
- The descriptor of the class to be instrumented.classNames
- The names of all classes to be instrumented; the "pipeline" if you will.public void execute(java.util.Set<java.io.File> files)
AbstractInstrumenter
execute
in interface Instrumenter
execute
in class AbstractInstrumenter
files
- The files.Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.