org.jetbrains.kotlin.codegen
Class JvmCodegenUtil

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.JvmCodegenUtil

public class JvmCodegenUtil
extends java.lang.Object


Method Summary
static boolean couldUseDirectAccessToProperty(PropertyDescriptor property, boolean forGetter, boolean isDelegated, MethodContext contextBeforeInline)
           
static CallableMemberDescriptor getDirectMember(CallableMemberDescriptor descriptor)
           
static ClassDescriptor getDispatchReceiverParameterForConstructorCall(ConstructorDescriptor descriptor, CalculatedClosure closure)
           
static java.lang.String getMappingFileName(java.lang.String moduleName)
           
static java.lang.String getModuleName(ModuleDescriptor module)
           
static boolean hasAbstractMembers(ClassDescriptor classDescriptor)
           
static boolean isArgumentWhichWillBeInlined(BindingContext bindingContext, DeclarationDescriptor descriptor)
           
static boolean isCallInsideSameModuleAsDeclared(CallableMemberDescriptor declarationDescriptor, CodegenContext context, java.io.File outDirectory)
           
static boolean isConst(CalculatedClosure closure)
           
static boolean isConstOrHasJvmFieldAnnotation(PropertyDescriptor propertyDescriptor)
           
static boolean isInlinedJavaConstProperty(VariableDescriptor descriptor)
           
static boolean isJvmInterface(DeclarationDescriptor descriptor)
           
static boolean isJvmInterface(KotlinType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isJvmInterface

public static boolean isJvmInterface(DeclarationDescriptor descriptor)

isJvmInterface

public static boolean isJvmInterface(KotlinType type)

isConst

public static boolean isConst(@NotNull
                              CalculatedClosure closure)

isCallInsideSameModuleAsDeclared

public static boolean isCallInsideSameModuleAsDeclared(@NotNull
                                                       CallableMemberDescriptor declarationDescriptor,
                                                       @NotNull
                                                       CodegenContext context,
                                                       @Nullable
                                                       java.io.File outDirectory)

hasAbstractMembers

public static boolean hasAbstractMembers(@NotNull
                                         ClassDescriptor classDescriptor)

isConstOrHasJvmFieldAnnotation

public static boolean isConstOrHasJvmFieldAnnotation(@NotNull
                                                     PropertyDescriptor propertyDescriptor)

couldUseDirectAccessToProperty

public static boolean couldUseDirectAccessToProperty(@NotNull
                                                     PropertyDescriptor property,
                                                     boolean forGetter,
                                                     boolean isDelegated,
                                                     @NotNull
                                                     MethodContext contextBeforeInline)

getDispatchReceiverParameterForConstructorCall

@Nullable
public static ClassDescriptor getDispatchReceiverParameterForConstructorCall(@NotNull
                                                                                      ConstructorDescriptor descriptor,
                                                                                      @Nullable
                                                                                      CalculatedClosure closure)

getDirectMember

@NotNull
public static CallableMemberDescriptor getDirectMember(@NotNull
                                                               CallableMemberDescriptor descriptor)

isArgumentWhichWillBeInlined

public static boolean isArgumentWhichWillBeInlined(@NotNull
                                                   BindingContext bindingContext,
                                                   @NotNull
                                                   DeclarationDescriptor descriptor)

getModuleName

@NotNull
public static java.lang.String getModuleName(ModuleDescriptor module)

getMappingFileName

@NotNull
public static java.lang.String getMappingFileName(@NotNull
                                                          java.lang.String moduleName)

isInlinedJavaConstProperty

public static boolean isInlinedJavaConstProperty(VariableDescriptor descriptor)