Top Constructors Methods
org.codehaus.groovy.runtime.callsite

public Class CallSiteGenerator

extends Object
Class Inheritance
Imports
org.codehaus.groovy.classgen.GeneratorContext, org.codehaus.groovy.classgen.asm.BytecodeHelper, org.codehaus.groovy.reflection.CachedClass, .CachedMethod, org.codehaus.groovy.reflection.android.AndroidSupport, org.codehaus.groovy.vmplugin.VMPluginFactory, org.objectweb.asm.ClassWriter, .Label, .MethodVisitor, .Opcodes, java.lang.reflect.Constructor, .Modifier

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
classHeader(ClassWriter cw, String internalName, String superName)

public static Constructor<T>
public static Constructor<T>
public static Constructor<T>
private static boolean
public static void
genCallWithFixedParams(ClassWriter cw, String name, final String superClass, CachedMethod cachedMethod, String receiverType)

public static void
genCallXxxWithArray(ClassWriter cw, final String name, final String superClass, CachedMethod cachedMethod, String receiverType)

private static void
genConstructor(ClassWriter cw, final String superClass, String internalName)

public static byte[]
public static byte[]
public static byte[]
public static boolean
private static ClassWriter
private static boolean
private static MethodVisitor
writeMethod(ClassWriter cw, String name, int argumentCount, final String superClass, CachedMethod cachedMethod, String receiverType, String parameterDescription, boolean useArray)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CallSiteGeneratorback to summary
private CallSiteGenerator()

Method Detail

classHeaderback to summary
private static void classHeader(ClassWriter cw, String internalName, String superName)
compilePogoMethodback to summary
public static Constructor<T> compilePogoMethod(CachedMethod cachedMethod)
compilePojoMethodback to summary
public static Constructor<T> compilePojoMethod(CachedMethod cachedMethod)
compileStaticMethodback to summary
public static Constructor<T> compileStaticMethod(CachedMethod cachedMethod)
containsOnlyValidCharsback to summary
private static boolean containsOnlyValidChars(String name)
genCallWithFixedParamsback to summary
public static void genCallWithFixedParams(ClassWriter cw, String name, final String superClass, CachedMethod cachedMethod, String receiverType)
genCallXxxWithArrayback to summary
public static void genCallXxxWithArray(ClassWriter cw, final String name, final String superClass, CachedMethod cachedMethod, String receiverType)
genConstructorback to summary
private static void genConstructor(ClassWriter cw, final String superClass, String internalName)
genPogoMetaMethodSiteback to summary
public static byte[] genPogoMetaMethodSite(CachedMethod cachedMethod, ClassWriter cw, String name)
genPojoMetaMethodSiteback to summary
public static byte[] genPojoMetaMethodSite(CachedMethod cachedMethod, ClassWriter cw, String name)
genStaticMetaMethodSiteback to summary
public static byte[] genStaticMetaMethodSite(CachedMethod cachedMethod, ClassWriter cw, String name)
isCompilableback to summary
public static boolean isCompilable(CachedMethod method)
makeClassWriterback to summary
private static ClassWriter makeClassWriter()
publicParamsback to summary
private static boolean publicParams(CachedMethod method)
writeMethodback to summary
private static MethodVisitor writeMethod(ClassWriter cw, String name, int argumentCount, final String superClass, CachedMethod cachedMethod, String receiverType, String parameterDescription, boolean useArray)