org.jetbrains.kotlin.codegen
Class JvmCodegenUtil
java.lang.Object
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,
boolean shouldInlineConstVals)
|
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 KotlinType |
getPropertyDelegateType(VariableDescriptorWithAccessors descriptor,
BindingContext bindingContext)
|
static boolean |
hasAbstractMembers(ClassDescriptor classDescriptor)
|
static boolean |
isAnnotationOrJvmInterfaceWithoutDefaults(DeclarationDescriptor descriptor,
GenerationState state)
|
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 |
isDelegatedLocalVariable(DeclarationDescriptor descriptor)
|
static boolean |
isInlinedJavaConstProperty(VariableDescriptor descriptor)
|
static boolean |
isJvm8InterfaceWithDefaults(DeclarationDescriptor descriptor,
boolean isJvm8Target,
boolean isJvm8TargetWithDefaults)
|
static boolean |
isJvm8InterfaceWithDefaults(DeclarationDescriptor descriptor,
GenerationState state)
|
static boolean |
isJvm8InterfaceWithDefaultsMember(CallableMemberDescriptor descriptor,
GenerationState state)
|
static boolean |
isJvmInterface(DeclarationDescriptor descriptor)
|
static boolean |
isJvmInterface(KotlinType type)
|
static boolean |
isNonDefaultInterfaceMember(CallableMemberDescriptor descriptor,
GenerationState state)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isAnnotationOrJvmInterfaceWithoutDefaults
public static boolean isAnnotationOrJvmInterfaceWithoutDefaults(@NotNull
DeclarationDescriptor descriptor,
@NotNull
GenerationState state)
isJvm8InterfaceWithDefaults
public static boolean isJvm8InterfaceWithDefaults(@NotNull
DeclarationDescriptor descriptor,
@NotNull
GenerationState state)
isJvm8InterfaceWithDefaults
public static boolean isJvm8InterfaceWithDefaults(@NotNull
DeclarationDescriptor descriptor,
boolean isJvm8Target,
boolean isJvm8TargetWithDefaults)
isJvm8InterfaceWithDefaultsMember
public static boolean isJvm8InterfaceWithDefaultsMember(@NotNull
CallableMemberDescriptor descriptor,
@NotNull
GenerationState state)
isNonDefaultInterfaceMember
public static boolean isNonDefaultInterfaceMember(@NotNull
CallableMemberDescriptor descriptor,
@NotNull
GenerationState state)
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,
boolean shouldInlineConstVals)
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)
getPropertyDelegateType
@Nullable
public static KotlinType getPropertyDelegateType(@NotNull
VariableDescriptorWithAccessors descriptor,
@NotNull
BindingContext bindingContext)
isDelegatedLocalVariable
public static boolean isDelegatedLocalVariable(@NotNull
DeclarationDescriptor descriptor)