org.codehaus.groovy.vmplugin.v5
Class Java5

java.lang.Object
  extended by org.codehaus.groovy.vmplugin.v5.Java5
All Implemented Interfaces:
VMPlugin

public class Java5
extends java.lang.Object
implements VMPlugin

java 5 based functions

Author:
Jochen Theodorou

Field Summary
private static java.lang.Class[] PLUGIN_DGM
           
 
Constructor Summary
Java5()
           
 
Method Summary
private  ClassNode configureClass(java.lang.Class c)
           
 void configureClassNode(CompileUnit compileUnit, ClassNode classNode)
           
private  ClassNode configureGenericArray(java.lang.reflect.GenericArrayType genericArrayType)
           
private  ClassNode configureParameterizedType(java.lang.reflect.ParameterizedType parameterizedType)
           
private  ClassNode configureType(java.lang.reflect.Type type)
           
private  GenericsType[] configureTypeArguments(java.lang.reflect.Type[] ta)
           
private  ClassNode[] configureTypes(java.lang.reflect.Type[] types)
           
private  GenericsType[] configureTypeVariable(java.lang.reflect.TypeVariable[] tvs)
           
private  GenericsType configureTypeVariableDefintion(java.lang.reflect.TypeVariable tv)
           
private  ClassNode configureTypeVariableReference(java.lang.reflect.TypeVariable tv)
           
private  ClassNode configureWildcardType(java.lang.reflect.WildcardType wildcardType)
           
 java.lang.Class[] getPluginDefaultGroovyMethods()
           
private  ClassNode makeClassNode(CompileUnit cu, java.lang.reflect.Type t, java.lang.Class c)
           
private  ClassNode[] makeClassNodes(CompileUnit cu, java.lang.reflect.Type[] types, java.lang.Class[] cls)
           
private  void makeInterfaceTypes(CompileUnit cu, ClassNode classNode, java.lang.Class clazz)
           
private  Parameter makeParameter(CompileUnit cu, java.lang.reflect.Type type, java.lang.Class cl, int idx)
           
private  Parameter[] makeParameters(CompileUnit cu, java.lang.reflect.Type[] types, java.lang.Class[] cls)
           
 void setGenericsTypes(ClassNode cn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_DGM

private static java.lang.Class[] PLUGIN_DGM
Constructor Detail

Java5

public Java5()
Method Detail

setGenericsTypes

public void setGenericsTypes(ClassNode cn)
Specified by:
setGenericsTypes in interface VMPlugin

configureTypeVariable

private GenericsType[] configureTypeVariable(java.lang.reflect.TypeVariable[] tvs)

configureTypeVariableDefintion

private GenericsType configureTypeVariableDefintion(java.lang.reflect.TypeVariable tv)

configureTypes

private ClassNode[] configureTypes(java.lang.reflect.Type[] types)

configureType

private ClassNode configureType(java.lang.reflect.Type type)

configureClass

private ClassNode configureClass(java.lang.Class c)

configureGenericArray

private ClassNode configureGenericArray(java.lang.reflect.GenericArrayType genericArrayType)

configureWildcardType

private ClassNode configureWildcardType(java.lang.reflect.WildcardType wildcardType)

configureParameterizedType

private ClassNode configureParameterizedType(java.lang.reflect.ParameterizedType parameterizedType)

configureTypeVariableReference

private ClassNode configureTypeVariableReference(java.lang.reflect.TypeVariable tv)

configureTypeArguments

private GenericsType[] configureTypeArguments(java.lang.reflect.Type[] ta)

getPluginDefaultGroovyMethods

public java.lang.Class[] getPluginDefaultGroovyMethods()
Specified by:
getPluginDefaultGroovyMethods in interface VMPlugin

configureClassNode

public void configureClassNode(CompileUnit compileUnit,
                               ClassNode classNode)
Specified by:
configureClassNode in interface VMPlugin

makeInterfaceTypes

private void makeInterfaceTypes(CompileUnit cu,
                                ClassNode classNode,
                                java.lang.Class clazz)

makeClassNodes

private ClassNode[] makeClassNodes(CompileUnit cu,
                                   java.lang.reflect.Type[] types,
                                   java.lang.Class[] cls)

makeClassNode

private ClassNode makeClassNode(CompileUnit cu,
                                java.lang.reflect.Type t,
                                java.lang.Class c)

makeParameters

private Parameter[] makeParameters(CompileUnit cu,
                                   java.lang.reflect.Type[] types,
                                   java.lang.Class[] cls)

makeParameter

private Parameter makeParameter(CompileUnit cu,
                                java.lang.reflect.Type type,
                                java.lang.Class cl,
                                int idx)


Copyright © ${year} The Codehaus. All Rights Reserved.