org.jetbrains.kotlin.js.translate.context
Class StaticContext
java.lang.Object
org.jetbrains.kotlin.js.translate.context.StaticContext
public final class StaticContext
- extends java.lang.Object
Aggregates all the static parts of the context.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)