org.jetbrains.k2js.translate.context
Class Namer

java.lang.Object
  extended by org.jetbrains.k2js.translate.context.Namer

public final class Namer
extends java.lang.Object

Encapuslates different types of constants and naming conventions.


Field Summary
static java.lang.String CALLEE_NAME
           
 
Method Summary
 com.google.dart.compiler.backend.js.ast.JsInvocation classCreateInvocation(ClassDescriptor descriptor)
           
 com.google.dart.compiler.backend.js.ast.JsExpression classCreationMethodReference()
           
static java.lang.String getKotlinBackingFieldName(java.lang.String propertyName)
           
static java.lang.String getNameForAccessor(java.lang.String propertyName, boolean isGetter, boolean useNativeAccessor)
           
static java.lang.String getReceiverParameterName()
           
static java.lang.String getRootNamespaceName()
           
static com.google.dart.compiler.backend.js.ast.JsNameRef initializeMethodReference()
           
 com.google.dart.compiler.backend.js.ast.JsExpression isOperationReference()
           
 com.google.dart.compiler.backend.js.ast.JsExpression kotlin(java.lang.String name)
           
 com.google.dart.compiler.backend.js.ast.JsNameRef kotlinObject()
           
static java.lang.String nameForClassesVariable()
           
static Namer newInstance(com.google.dart.compiler.backend.js.ast.JsScope rootScope)
           
 com.google.dart.compiler.backend.js.ast.JsExpression objectCreationMethodReference()
           
 com.google.dart.compiler.backend.js.ast.JsExpression packageDefinitionMethodReference()
           
static java.lang.String superMethodName()
           
 com.google.dart.compiler.backend.js.ast.JsExpression throwNPEFunctionCall()
           
 com.google.dart.compiler.backend.js.ast.JsExpression traitCreationMethodReference()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALLEE_NAME

public static final java.lang.String CALLEE_NAME
See Also:
Constant Field Values
Method Detail

getReceiverParameterName

@NotNull
public static java.lang.String getReceiverParameterName()

getRootNamespaceName

@NotNull
public static java.lang.String getRootNamespaceName()

initializeMethodReference

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsNameRef initializeMethodReference()

superMethodName

@NotNull
public static java.lang.String superMethodName()

nameForClassesVariable

@NotNull
public static java.lang.String nameForClassesVariable()

getNameForAccessor

@NotNull
public static java.lang.String getNameForAccessor(@NotNull
                                                          java.lang.String propertyName,
                                                          boolean isGetter,
                                                          boolean useNativeAccessor)

getKotlinBackingFieldName

@NotNull
public static java.lang.String getKotlinBackingFieldName(@NotNull
                                                                 java.lang.String propertyName)

newInstance

public static Namer newInstance(@NotNull
                                com.google.dart.compiler.backend.js.ast.JsScope rootScope)

classCreationMethodReference

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression classCreationMethodReference()

traitCreationMethodReference

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression traitCreationMethodReference()

packageDefinitionMethodReference

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression packageDefinitionMethodReference()

objectCreationMethodReference

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression objectCreationMethodReference()

throwNPEFunctionCall

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression throwNPEFunctionCall()

kotlin

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression kotlin(@NotNull
                                                                           java.lang.String name)

kotlinObject

@NotNull
public com.google.dart.compiler.backend.js.ast.JsNameRef kotlinObject()

isOperationReference

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression isOperationReference()

classCreateInvocation

@NotNull
public com.google.dart.compiler.backend.js.ast.JsInvocation classCreateInvocation(@NotNull
                                                                                          ClassDescriptor descriptor)