public class ReferencesClassTransformer extends Object implements ClassTransformer
ClassTransformer that dynamically augments classes and methods
annotated with Reference or References annotations to
register the annotations with a global listener if the class is constructed,
or the method is invoked.
When used with the CitationAgent, this can be used to dynamically
produce a list of references for code as it is run. Importantly, the list
will only contain references for the bits of code that are actually used!
| Constructor and Description |
|---|
ReferencesClassTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
transform(String className,
javassist.CtClass ctclz)
Transform the given class
|
public ReferencesClassTransformer()
public void transform(String className, javassist.CtClass ctclz) throws Exception
ClassTransformertransform in interface ClassTransformerclassName - the name of the classctclz - the classException - if some error occurs