org.jetbrains.jet.codegen
Class JvmCodegenUtil

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

public class JvmCodegenUtil
extends java.lang.Object


Method Summary
static boolean couldUseDirectAccessToProperty(PropertyDescriptor property, boolean forGetter, boolean isDelegated, MethodContext context)
           
static FunctionDescriptor getDeclaredFunctionByRawSignature(ClassDescriptor owner, Name name, ClassifierDescriptor returnedClassifier, ClassifierDescriptor... valueParameterClassifiers)
           
static CallableMemberDescriptor getDirectMember(CallableMemberDescriptor descriptor)
           
static ClassDescriptor getExpectedThisObjectForConstructorCall(ConstructorDescriptor descriptor, CalculatedClosure closure)
           
static ImplementationBodyCodegen getParentBodyCodegen(MemberCodegen<?> classBodyCodegen)
           
static boolean hasAbstractMembers(ClassDescriptor classDescriptor)
           
static boolean isCallInsideSameModuleAsDeclared(CallableMemberDescriptor declarationDescriptor, CodegenContext context, java.io.File outDirectory)
           
static boolean isConst(CalculatedClosure closure)
           
static boolean isEnumValueOfMethod(FunctionDescriptor functionDescriptor)
           
static boolean isEnumValuesMethod(FunctionDescriptor functionDescriptor)
           
static boolean isInterface(DeclarationDescriptor descriptor)
           
static boolean isInterface(JetType type)
           
static
<T> T
peekFromStack(com.intellij.util.containers.Stack<T> stack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isInterface

public static boolean isInterface(DeclarationDescriptor descriptor)

isInterface

public static boolean isInterface(JetType type)

isConst

public static boolean isConst(@NotNull
                              CalculatedClosure closure)

peekFromStack

public static <T> T peekFromStack(com.intellij.util.containers.Stack<T> stack)

getDeclaredFunctionByRawSignature

@Nullable
public static FunctionDescriptor getDeclaredFunctionByRawSignature(@NotNull
                                                                            ClassDescriptor owner,
                                                                            @NotNull
                                                                            Name name,
                                                                            @NotNull
                                                                            ClassifierDescriptor returnedClassifier,
                                                                            @NotNull
                                                                            ClassifierDescriptor... valueParameterClassifiers)

isCallInsideSameModuleAsDeclared

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

hasAbstractMembers

public static boolean hasAbstractMembers(@NotNull
                                         ClassDescriptor classDescriptor)

couldUseDirectAccessToProperty

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

getParentBodyCodegen

@NotNull
public static ImplementationBodyCodegen getParentBodyCodegen(@Nullable
                                                                     MemberCodegen<?> classBodyCodegen)

getExpectedThisObjectForConstructorCall

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

isEnumValueOfMethod

public static boolean isEnumValueOfMethod(@NotNull
                                          FunctionDescriptor functionDescriptor)

isEnumValuesMethod

public static boolean isEnumValuesMethod(@NotNull
                                         FunctionDescriptor functionDescriptor)

getDirectMember

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