org.jetbrains.jet.backend.common
Class CodegenUtil

java.lang.Object
  extended by org.jetbrains.jet.backend.common.CodegenUtil

public class CodegenUtil
extends java.lang.Object

Backend-independent utility class.


Field Summary
static java.lang.String EQUALS_METHOD_NAME
           
static java.lang.String HASH_CODE_METHOD_NAME
           
static java.lang.String TO_STRING_METHOD_NAME
           
 
Method Summary
static FunctionDescriptor getAnyEqualsMethod()
           
static FunctionDescriptor getAnyHashCodeMethod()
           
static FunctionDescriptor getAnyToStringMethod()
           
static FunctionDescriptor getDeclaredFunctionByRawSignature(ClassDescriptor owner, Name name, ClassifierDescriptor returnedClassifier, ClassifierDescriptor... valueParameterClassifiers)
           
static PropertyDescriptor getDelegatePropertyIfAny(JetExpression expression, ClassDescriptor classDescriptor, BindingContext bindingContext)
           
static ClassDescriptor getSuperClassByDelegationSpecifier(JetDelegationSpecifier specifier, BindingContext bindingContext)
           
static java.util.Map<FunctionDescriptor,FunctionDescriptor> getTraitMethods(ClassDescriptor descriptor)
           
static boolean isEnumValueOfMethod(FunctionDescriptor functionDescriptor)
           
static boolean isEnumValuesMethod(FunctionDescriptor functionDescriptor)
           
static boolean isFinalPropertyWithBackingField(PropertyDescriptor propertyDescriptor, BindingContext bindingContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUALS_METHOD_NAME

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

TO_STRING_METHOD_NAME

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

HASH_CODE_METHOD_NAME

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

getDeclaredFunctionByRawSignature

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

getAnyEqualsMethod

public static FunctionDescriptor getAnyEqualsMethod()

getAnyToStringMethod

public static FunctionDescriptor getAnyToStringMethod()

getAnyHashCodeMethod

public static FunctionDescriptor getAnyHashCodeMethod()

getDelegatePropertyIfAny

@Nullable
public static PropertyDescriptor getDelegatePropertyIfAny(JetExpression expression,
                                                                   ClassDescriptor classDescriptor,
                                                                   BindingContext bindingContext)

isFinalPropertyWithBackingField

public static boolean isFinalPropertyWithBackingField(PropertyDescriptor propertyDescriptor,
                                                      BindingContext bindingContext)

getTraitMethods

@NotNull
public static java.util.Map<FunctionDescriptor,FunctionDescriptor> getTraitMethods(ClassDescriptor descriptor)

getSuperClassByDelegationSpecifier

@NotNull
public static ClassDescriptor getSuperClassByDelegationSpecifier(@NotNull
                                                                         JetDelegationSpecifier specifier,
                                                                         @NotNull
                                                                         BindingContext bindingContext)

isEnumValueOfMethod

public static boolean isEnumValueOfMethod(@NotNull
                                          FunctionDescriptor functionDescriptor)

isEnumValuesMethod

public static boolean isEnumValuesMethod(@NotNull
                                         FunctionDescriptor functionDescriptor)