public abstract class AbstractGrailsArtefactTransformer extends java.lang.Object implements GrailsArtefactClassInjector, java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENT_PREFIX |
static java.lang.String |
METHOD_MISSING_METHOD_NAME |
static int |
PUBLIC_STATIC_MODIFIER |
static java.lang.String |
STATIC_METHOD_MISSING_METHOD_NAME |
EMPTY_CLASS_ARRAY, ZERO_ARGS, ZERO_PARAMETERS
PRIVATE_STATIC_MODIFIER
Constructor and Description |
---|
AbstractGrailsArtefactTransformer() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Used for ordering not equality.
|
java.lang.String[] |
getArtefactTypes() |
abstract java.lang.Class |
getInstanceImplementation()
The class that provides the implementation of all instance methods and properties
|
abstract java.lang.Class |
getStaticImplementation()
The class that provides static methods
|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldInject
public static final int PUBLIC_STATIC_MODIFIER
public static final java.lang.String CURRENT_PREFIX
public static final java.lang.String METHOD_MISSING_METHOD_NAME
public static final java.lang.String STATIC_METHOD_MISSING_METHOD_NAME
public java.lang.String[] getArtefactTypes()
getArtefactTypes
in interface GrailsArtefactClassInjector
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(Object)
public void performInjection(SourceUnit source, GeneratorContext context, ClassNode classNode)
ClassInjector
performInjection
in interface ClassInjector
source
- The source unitcontext
- The generator contextclassNode
- The ClassNode instancepublic abstract java.lang.Class getInstanceImplementation()
public abstract java.lang.Class getStaticImplementation()
public void performInjection(SourceUnit source, ClassNode classNode)
ClassInjector
performInjection
in interface ClassInjector
source
- The source unitclassNode
- The ClassNode instance