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