Constructor and Description |
---|
Java5() |
Modifier and Type | Method and Description |
---|---|
void |
configureAnnotation(AnnotationNode node) |
void |
configureClassNode(CompileUnit compileUnit,
ClassNode classNode) |
Object |
getInvokeSpecialHandle(Method m,
Object receiver)
Returns a handle with bound receiver to invokeSpecial the given method.
|
Class[] |
getPluginDefaultGroovyMethods() |
Class[] |
getPluginStaticGroovyMethods() |
int |
getVersion()
Gives the version the plguin is made for
|
void |
invalidateCallSites() |
Object |
invokeHandle(Object handle,
Object[] args)
Invokes a handle produced by #getInvokeSpecialdHandle
|
void |
setAdditionalClassInformation(ClassNode cn) |
public void setAdditionalClassInformation(ClassNode cn)
setAdditionalClassInformation
in interface VMPlugin
public Class[] getPluginDefaultGroovyMethods()
getPluginDefaultGroovyMethods
in interface VMPlugin
public Class[] getPluginStaticGroovyMethods()
getPluginStaticGroovyMethods
in interface VMPlugin
public void configureAnnotation(AnnotationNode node)
configureAnnotation
in interface VMPlugin
public void configureClassNode(CompileUnit compileUnit, ClassNode classNode)
configureClassNode
in interface VMPlugin
public void invalidateCallSites()
invalidateCallSites
in interface VMPlugin
public Object getInvokeSpecialHandle(Method m, Object receiver)
VMPlugin
getInvokeSpecialHandle
in interface VMPlugin
public int getVersion()
VMPlugin
getVersion
in interface VMPlugin
public Object invokeHandle(Object handle, Object[] args) throws Throwable
VMPlugin
invokeHandle
in interface VMPlugin
handle
- the handleargs
- arguments for the method call, can be empty but not nullThrowable