public class PluginAwareAstTransformer extends java.lang.Object implements ClassInjector, AllArtefactClassInjector
PRIVATE_STATIC_MODIFIER
Constructor and Description |
---|
PluginAwareAstTransformer() |
Modifier and Type | Method and Description |
---|---|
void |
performInjection(SourceUnit source,
ClassNode classNode)
Handles injection of properties, methods etc.
|
void |
performInjection(SourceUnit source,
GeneratorContext context,
ClassNode classNode)
Handles injection of properties, methods etc.
|
boolean |
shouldInject(java.net.URL url)
Returns whether this injector should inject
|
public void performInjection(SourceUnit source, GeneratorContext context, ClassNode classNode)
ClassInjector
performInjection
in interface ClassInjector
source
- The source unitcontext
- The generator contextclassNode
- The ClassNode instancepublic void performInjection(SourceUnit source, ClassNode classNode)
ClassInjector
performInjection
in interface ClassInjector
source
- The source unitclassNode
- The ClassNode instancepublic boolean shouldInject(java.net.URL url)
ClassInjector
shouldInject
in interface ClassInjector
url
- The URL of the source file