org.jetbrains.jet.codegen
Class FunctionGenerationStrategy

java.lang.Object
  extended by org.jetbrains.jet.codegen.FunctionGenerationStrategy
Direct Known Subclasses:
FunctionGenerationStrategy.CodegenBased

public abstract class FunctionGenerationStrategy
extends java.lang.Object


Nested Class Summary
static class FunctionGenerationStrategy.CodegenBased<T extends CallableDescriptor>
           
static class FunctionGenerationStrategy.FunctionDefault
           
 
Constructor Summary
FunctionGenerationStrategy()
           
 
Method Summary
protected  void addLocalVariableName(java.lang.String name)
           
protected  FrameMap createFrameMap(JetTypeMapper typeMapper, MethodContext context)
           
abstract  void generateBody(org.jetbrains.asm4.MethodVisitor mv, JvmMethodSignature signature, MethodContext context, MemberCodegen parentCodegen)
           
 FrameMap getFrameMap(JetTypeMapper typeMapper, MethodContext context)
           
 java.util.Collection<java.lang.String> getLocalVariableNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionGenerationStrategy

public FunctionGenerationStrategy()
Method Detail

generateBody

public abstract void generateBody(@NotNull
                                  org.jetbrains.asm4.MethodVisitor mv,
                                  @NotNull
                                  JvmMethodSignature signature,
                                  @NotNull
                                  MethodContext context,
                                  @Nullable
                                  MemberCodegen parentCodegen)

addLocalVariableName

protected void addLocalVariableName(@NotNull
                                    java.lang.String name)

getLocalVariableNames

@NotNull
public java.util.Collection<java.lang.String> getLocalVariableNames()

createFrameMap

@NotNull
protected FrameMap createFrameMap(@NotNull
                                          JetTypeMapper typeMapper,
                                          @NotNull
                                          MethodContext context)

getFrameMap

@NotNull
public FrameMap getFrameMap(@NotNull
                                    JetTypeMapper typeMapper,
                                    @NotNull
                                    MethodContext context)