org.codehaus.groovy.runtime.callsite
Class CallSiteGenerator

java.lang.Object
  extended by org.codehaus.groovy.runtime.callsite.CallSiteGenerator

public class CallSiteGenerator
extends java.lang.Object


Field Summary
private static java.lang.String GRE
           
 
Constructor Summary
private CallSiteGenerator()
           
 
Method Summary
static java.lang.reflect.Constructor compilePogoMethod(CachedMethod cachedMethod)
           
static java.lang.reflect.Constructor compilePojoMethod(CachedMethod cachedMethod)
           
static java.lang.reflect.Constructor compileStaticMethod(CachedMethod cachedMethod)
           
static void genCallWithFixedParams(org.objectweb.asm.ClassWriter cw, java.lang.String name, java.lang.String superClass, CachedMethod cachedMethod, java.lang.String receiverType)
           
static void genCallXxxWithArray(org.objectweb.asm.ClassWriter cw, java.lang.String name, java.lang.String superClass, CachedMethod cachedMethod, java.lang.String receiverType)
           
private static void genConstructor(org.objectweb.asm.ClassWriter cw, java.lang.String superClass)
           
static byte[] genPogoMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, java.lang.String name)
           
static byte[] genPojoMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, java.lang.String name)
           
static byte[] genStaticMetaMethodSite(CachedMethod cachedMethod, org.objectweb.asm.ClassWriter cw, java.lang.String name)
           
static boolean isCompilable(CachedMethod method)
           
private static boolean publicParams(CachedMethod method)
           
private static org.objectweb.asm.MethodVisitor writeMethod(org.objectweb.asm.ClassWriter cw, java.lang.String name, int argumentCount, java.lang.String superClass, CachedMethod cachedMethod, java.lang.String receiverType, java.lang.String parameterDescription, boolean useArray)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRE

private static final java.lang.String GRE
Constructor Detail

CallSiteGenerator

private CallSiteGenerator()
Method Detail

writeMethod

private static org.objectweb.asm.MethodVisitor writeMethod(org.objectweb.asm.ClassWriter cw,
                                                           java.lang.String name,
                                                           int argumentCount,
                                                           java.lang.String superClass,
                                                           CachedMethod cachedMethod,
                                                           java.lang.String receiverType,
                                                           java.lang.String parameterDescription,
                                                           boolean useArray)

genCallWithFixedParams

public static void genCallWithFixedParams(org.objectweb.asm.ClassWriter cw,
                                          java.lang.String name,
                                          java.lang.String superClass,
                                          CachedMethod cachedMethod,
                                          java.lang.String receiverType)

genCallXxxWithArray

public static void genCallXxxWithArray(org.objectweb.asm.ClassWriter cw,
                                       java.lang.String name,
                                       java.lang.String superClass,
                                       CachedMethod cachedMethod,
                                       java.lang.String receiverType)

genConstructor

private static void genConstructor(org.objectweb.asm.ClassWriter cw,
                                   java.lang.String superClass)

genPogoMetaMethodSite

public static byte[] genPogoMetaMethodSite(CachedMethod cachedMethod,
                                           org.objectweb.asm.ClassWriter cw,
                                           java.lang.String name)

genPojoMetaMethodSite

public static byte[] genPojoMetaMethodSite(CachedMethod cachedMethod,
                                           org.objectweb.asm.ClassWriter cw,
                                           java.lang.String name)

genStaticMetaMethodSite

public static byte[] genStaticMetaMethodSite(CachedMethod cachedMethod,
                                             org.objectweb.asm.ClassWriter cw,
                                             java.lang.String name)

compilePogoMethod

public static java.lang.reflect.Constructor compilePogoMethod(CachedMethod cachedMethod)

compilePojoMethod

public static java.lang.reflect.Constructor compilePojoMethod(CachedMethod cachedMethod)

compileStaticMethod

public static java.lang.reflect.Constructor compileStaticMethod(CachedMethod cachedMethod)

isCompilable

public static boolean isCompilable(CachedMethod method)

publicParams

private static boolean publicParams(CachedMethod method)


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