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()
           
 java.util.List<DeclarationDescriptor> getClassOrConstructorClosure(MemberDescriptor descriptor)
           
 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 getScopeForDescriptor(DeclarationDescriptor descriptor)
           
 void putClassOrConstructorClosure(MemberDescriptor localClass, java.util.List<DeclarationDescriptor> closure)
           
 
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)

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()

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)

putClassOrConstructorClosure

public void putClassOrConstructorClosure(@NotNull
                                         MemberDescriptor localClass,
                                         @NotNull
                                         java.util.List<DeclarationDescriptor> closure)

getClassOrConstructorClosure

@Nullable
public java.util.List<DeclarationDescriptor> getClassOrConstructorClosure(@NotNull
                                                                                   MemberDescriptor descriptor)