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
           
static java.lang.String KOTLIN_LOWER_NAME
           
static java.lang.String KOTLIN_NAME
           
static java.lang.String OUTER_CLASS_NAME
           
 
Method Summary
 com.google.dart.compiler.backend.js.ast.JsInvocation classCreateInvocation(ClassDescriptor descriptor)
           
 com.google.dart.compiler.backend.js.ast.JsExpression classCreationMethodReference()
           
 com.google.dart.compiler.backend.js.ast.JsExpression enumEntriesCreationMethodReference()
           
 com.google.dart.compiler.backend.js.ast.JsInvocation enumEntriesObjectCreateInvocation()
           
static com.google.dart.compiler.backend.js.ast.JsExpression getClassObjectAccessor(com.google.dart.compiler.backend.js.ast.JsExpression referenceToClass)
           
static java.lang.String getDelegateName(java.lang.String propertyName)
           
static com.google.dart.compiler.backend.js.ast.JsNameRef getDelegateNameRef(java.lang.String propertyName)
           
static java.lang.String getKotlinBackingFieldName(java.lang.String propertyName)
           
static Named getNamedForClassObjectInitializer()
           
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()
           
 com.google.dart.compiler.backend.js.ast.JsNameRef propertyMetadataRef()
           
static java.lang.String superMethodName()
           
 com.google.dart.compiler.backend.js.ast.JsExpression throwNPEFunctionRef()
           
 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

KOTLIN_NAME

public static final java.lang.String KOTLIN_NAME
See Also:
Constant Field Values

KOTLIN_LOWER_NAME

public static final java.lang.String KOTLIN_LOWER_NAME

CALLEE_NAME

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

OUTER_CLASS_NAME

public static final java.lang.String OUTER_CLASS_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)

getClassObjectAccessor

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsExpression getClassObjectAccessor(@NotNull
                                                                                                  com.google.dart.compiler.backend.js.ast.JsExpression referenceToClass)

getNamedForClassObjectInitializer

@NotNull
public static Named getNamedForClassObjectInitializer()

getDelegateName

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

getDelegateNameRef

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsNameRef getDelegateNameRef(java.lang.String propertyName)

newInstance

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

enumEntriesCreationMethodReference

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

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

throwNPEFunctionRef

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

propertyMetadataRef

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

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)

enumEntriesObjectCreateInvocation

@NotNull
public com.google.dart.compiler.backend.js.ast.JsInvocation enumEntriesObjectCreateInvocation()