Is called when the Javassist preprocessor encounters an
import declaration annotated with the "by" keyword.
The original import declaration is replaced with new import
declarations of classes returned by this method. For example,
the following implementation does not change the original
declaration:
public CtClass[] assist(ClassPool cp, String importname, String[] args) {
return new CtClass[] { cp.get(importname) };
}
Parameters: cp - class pool Parameters: importname - the class imported by the declaration Parameters: args - the parameters specified by the annotation the classes imported in the java sourceprogram produced by the preprocessor. |