org.jetbrains.kotlin.js.translate.context
Class StaticContext

java.lang.Object
  extended by org.jetbrains.kotlin.js.translate.context.StaticContext

public final class StaticContext
extends java.lang.Object

Aggregates all the static parts of the context.


Method Summary
 JsName declarePropertyOrPropertyAccessorName(DeclarationDescriptor descriptor, java.lang.String name, boolean fresh)
           
static StaticContext generateStaticContext(BindingTrace bindingTrace, Config config, ModuleDescriptor moduleDescriptor)
           
 BindingContext getBindingContext()
           
 BindingTrace getBindingTrace()
           
 Config getConfig()
           
 JsFunction getFunctionWithScope(CallableDescriptor descriptor)
           
 Intrinsics getIntrinsics()
           
 JsName getNameForDescriptor(DeclarationDescriptor descriptor)
           
 JsName getNameForPackage(FqName packageFqName)
           
 Namer getNamer()
           
 JsProgram getProgram()
           
 JsNameRef getQualifiedReference(DeclarationDescriptor descriptor)
           
 JsNameRef getQualifiedReference(FqName packageFqName)
           
 JsExpression getQualifierForDescriptor(DeclarationDescriptor descriptor)
           
 ReflectionTypes getReflectionTypes()
           
 JsScope getRootScope()
           
 JsScope getScopeForDescriptor(DeclarationDescriptor descriptor)
           
 boolean isEcma5()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateStaticContext

public static StaticContext generateStaticContext(@NotNull
                                                  BindingTrace bindingTrace,
                                                  @NotNull
                                                  Config config,
                                                  @NotNull
                                                  ModuleDescriptor moduleDescriptor)

isEcma5

public boolean isEcma5()

getProgram

@NotNull
public JsProgram getProgram()

getBindingTrace

@NotNull
public BindingTrace getBindingTrace()

getBindingContext

@NotNull
public BindingContext getBindingContext()

getIntrinsics

@NotNull
public Intrinsics getIntrinsics()

getNamer

@NotNull
public Namer getNamer()

getReflectionTypes

@NotNull
public ReflectionTypes getReflectionTypes()

getRootScope

@NotNull
public JsScope getRootScope()

getScopeForDescriptor

@NotNull
public JsScope getScopeForDescriptor(@NotNull
                                             DeclarationDescriptor descriptor)

getFunctionWithScope

@NotNull
public JsFunction getFunctionWithScope(@NotNull
                                               CallableDescriptor descriptor)

getQualifiedReference

@NotNull
public JsNameRef getQualifiedReference(@NotNull
                                               DeclarationDescriptor descriptor)

getQualifiedReference

@NotNull
public JsNameRef getQualifiedReference(@NotNull
                                               FqName packageFqName)

getNameForDescriptor

@NotNull
public JsName getNameForDescriptor(@NotNull
                                           DeclarationDescriptor descriptor)

getNameForPackage

@NotNull
public JsName getNameForPackage(@NotNull
                                        FqName packageFqName)

getConfig

@NotNull
public Config getConfig()

declarePropertyOrPropertyAccessorName

@NotNull
public JsName declarePropertyOrPropertyAccessorName(@NotNull
                                                            DeclarationDescriptor descriptor,
                                                            @NotNull
                                                            java.lang.String name,
                                                            boolean fresh)

getQualifierForDescriptor

@Nullable
public JsExpression getQualifierForDescriptor(@NotNull
                                                       DeclarationDescriptor descriptor)