Constructor and Description |
---|
Java5() |
Modifier and Type | Method and Description |
---|---|
void |
configureAnnotation(AnnotationNode node) |
void |
configureAnnotationFromDefinition(AnnotationNode definition,
AnnotationNode root)
Deprecated.
|
void |
configureAnnotationNodeFromDefinition(AnnotationNode definition,
AnnotationNode root) |
void |
configureClassNode(CompileUnit compileUnit,
ClassNode classNode) |
static GenericsType |
configureTypeVariableDefinition(ClassNode base,
ClassNode[] cBounds) |
static ClassNode |
configureTypeVariableReference(java.lang.String name) |
protected int |
getElementCode(java.lang.annotation.ElementType value) |
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 plugin 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 static GenericsType configureTypeVariableDefinition(ClassNode base, ClassNode[] cBounds)
public static ClassNode configureTypeVariableReference(java.lang.String name)
public java.lang.Class[] getPluginDefaultGroovyMethods()
getPluginDefaultGroovyMethods
in interface VMPlugin
public java.lang.Class[] getPluginStaticGroovyMethods()
getPluginStaticGroovyMethods
in interface VMPlugin
@Deprecated public void configureAnnotationFromDefinition(AnnotationNode definition, AnnotationNode root)
public void configureAnnotationNodeFromDefinition(AnnotationNode definition, AnnotationNode root)
configureAnnotationNodeFromDefinition
in interface VMPlugin
public void configureAnnotation(AnnotationNode node)
configureAnnotation
in interface VMPlugin
protected int getElementCode(java.lang.annotation.ElementType value)
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