gnu.kawa.reflect
Class CompileArrays

java.lang.Object
  extended by gnu.kawa.reflect.CompileArrays
All Implemented Interfaces:
Inlineable

public class CompileArrays
extends java.lang.Object
implements Inlineable


Field Summary
 char code
          One of 'N' (New), 'L' (Length), 'G' (get), 'S' (set).
 
Constructor Summary
CompileArrays(Procedure proc, char code)
           
 
Method Summary
 void compile(ApplyExp exp, Compilation comp, Target target)
           
static void compileArrayGet(ArrayGet proc, ApplyExp exp, Compilation comp, Target target)
           
static void compileArrayLength(ArrayLength proc, ApplyExp exp, Compilation comp, Target target)
           
static void compileArrayNew(ArrayNew proc, ApplyExp exp, Compilation comp, Target target)
           
static void compileArraySet(ArraySet proc, ApplyExp exp, Compilation comp, Target target)
           
static CompileArrays getForArrayGet(java.lang.Object proc)
           
static CompileArrays getForArrayLength(java.lang.Object proc)
           
static CompileArrays getForArrayNew(java.lang.Object proc)
           
static CompileArrays getForArraySet(java.lang.Object proc)
           
static Expression validateArrayGet(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)
           
static Expression validateArrayLength(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)
           
static Expression validateArrayNew(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)
           
static Expression validateArraySet(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

public char code
One of 'N' (New), 'L' (Length), 'G' (get), 'S' (set).

Constructor Detail

CompileArrays

public CompileArrays(Procedure proc,
                     char code)
Method Detail

getForArrayGet

public static CompileArrays getForArrayGet(java.lang.Object proc)

getForArraySet

public static CompileArrays getForArraySet(java.lang.Object proc)

getForArrayLength

public static CompileArrays getForArrayLength(java.lang.Object proc)

getForArrayNew

public static CompileArrays getForArrayNew(java.lang.Object proc)

compile

public void compile(ApplyExp exp,
                    Compilation comp,
                    Target target)
Specified by:
compile in interface Inlineable

compileArrayGet

public static void compileArrayGet(ArrayGet proc,
                                   ApplyExp exp,
                                   Compilation comp,
                                   Target target)

compileArraySet

public static void compileArraySet(ArraySet proc,
                                   ApplyExp exp,
                                   Compilation comp,
                                   Target target)

compileArrayNew

public static void compileArrayNew(ArrayNew proc,
                                   ApplyExp exp,
                                   Compilation comp,
                                   Target target)

compileArrayLength

public static void compileArrayLength(ArrayLength proc,
                                      ApplyExp exp,
                                      Compilation comp,
                                      Target target)

validateArrayNew

public static Expression validateArrayNew(ApplyExp exp,
                                          InlineCalls visitor,
                                          Type required,
                                          Procedure proc)

validateArrayLength

public static Expression validateArrayLength(ApplyExp exp,
                                             InlineCalls visitor,
                                             Type required,
                                             Procedure proc)

validateArrayGet

public static Expression validateArrayGet(ApplyExp exp,
                                          InlineCalls visitor,
                                          Type required,
                                          Procedure proc)

validateArraySet

public static Expression validateArraySet(ApplyExp exp,
                                          InlineCalls visitor,
                                          Type required,
                                          Procedure proc)