org.jetbrains.jet.codegen
Class ScriptCodegen

java.lang.Object
  extended by org.jetbrains.jet.codegen.binding.BindingContextAware
      extended by org.jetbrains.jet.codegen.binding.BindingTraceAware
          extended by org.jetbrains.jet.codegen.state.TypeMapperAware
              extended by org.jetbrains.jet.codegen.state.GenerationStateAware
                  extended by org.jetbrains.jet.codegen.MemberCodegen
                      extended by org.jetbrains.jet.codegen.ScriptCodegen

public class ScriptCodegen
extends MemberCodegen


Field Summary
 
Fields inherited from class org.jetbrains.jet.codegen.state.GenerationStateAware
state
 
Fields inherited from class org.jetbrains.jet.codegen.state.TypeMapperAware
typeMapper
 
Fields inherited from class org.jetbrains.jet.codegen.binding.BindingTraceAware
bindingTrace
 
Fields inherited from class org.jetbrains.jet.codegen.binding.BindingContextAware
bindingContext
 
Constructor Summary
ScriptCodegen(GenerationState state)
           
 
Method Summary
 void compileScript(JetScript script, JvmClassName className, java.util.List<com.intellij.openapi.util.Pair<ScriptDescriptor,JvmClassName>> earlierScripts, CompilationErrorHandler errorHandler)
           
 void generate(JetScript scriptDeclaration)
           
 org.jetbrains.asm4.commons.Method getScriptConstructorMethod()
           
 java.lang.String getScriptFieldName(ScriptDescriptor scriptDescriptor)
           
protected  int getScriptIndex(ScriptDescriptor scriptDescriptor)
           
 void registerEarlierScripts(java.util.List<com.intellij.openapi.util.Pair<ScriptDescriptor,JvmClassName>> earlierScripts)
           
 void setClassFileFactory(ClassFileFactory classFileFactory)
           
 void setScriptConstructorMethod(org.jetbrains.asm4.commons.Method scriptConstructorMethod)
           
 
Methods inherited from class org.jetbrains.jet.codegen.MemberCodegen
genClassOrObject, genFunctionOrProperty, getParentCodegen
 
Methods inherited from class org.jetbrains.jet.codegen.state.GenerationStateAware
getState
 
Methods inherited from class org.jetbrains.jet.codegen.state.TypeMapperAware
getTypeMapper
 
Methods inherited from class org.jetbrains.jet.codegen.binding.BindingTraceAware
getBindingTrace
 
Methods inherited from class org.jetbrains.jet.codegen.binding.BindingContextAware
getBindingContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptCodegen

public ScriptCodegen(@NotNull
                     GenerationState state)
Method Detail

setClassFileFactory

@Inject
public void setClassFileFactory(@NotNull
                                       ClassFileFactory classFileFactory)

generate

public void generate(JetScript scriptDeclaration)

registerEarlierScripts

public void registerEarlierScripts(java.util.List<com.intellij.openapi.util.Pair<ScriptDescriptor,JvmClassName>> earlierScripts)

getScriptIndex

protected int getScriptIndex(@NotNull
                             ScriptDescriptor scriptDescriptor)

getScriptFieldName

public java.lang.String getScriptFieldName(@NotNull
                                           ScriptDescriptor scriptDescriptor)

setScriptConstructorMethod

public void setScriptConstructorMethod(org.jetbrains.asm4.commons.Method scriptConstructorMethod)

getScriptConstructorMethod

public org.jetbrains.asm4.commons.Method getScriptConstructorMethod()

compileScript

public void compileScript(@NotNull
                          JetScript script,
                          @NotNull
                          JvmClassName className,
                          @NotNull
                          java.util.List<com.intellij.openapi.util.Pair<ScriptDescriptor,JvmClassName>> earlierScripts,
                          @NotNull
                          CompilationErrorHandler errorHandler)