org.jetbrains.jet.lang.resolve
Class DescriptorFactory

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.DescriptorFactory

public class DescriptorFactory
extends java.lang.Object


Field Summary
static Name VALUE_OF_METHOD_NAME
           
static Name VALUES_METHOD_NAME
           
 
Method Summary
static PropertyGetterDescriptorImpl createDefaultGetter(PropertyDescriptor propertyDescriptor)
           
static PropertySetterDescriptorImpl createDefaultSetter(PropertyDescriptor propertyDescriptor)
           
static SimpleFunctionDescriptor createEnumClassObjectValueOfMethod(ClassDescriptor classObject, JetType returnType)
           
static SimpleFunctionDescriptor createEnumClassObjectValuesMethod(ClassDescriptor classObject, JetType returnType)
           
static PropertyGetterDescriptorImpl createGetter(PropertyDescriptor propertyDescriptor, boolean isDefault)
           
static ConstructorDescriptorImpl createPrimaryConstructorForObject(ClassDescriptor containingClass)
           
static ReceiverParameterDescriptor createReceiverParameterForCallable(CallableDescriptor owner, JetType receiverParameterType)
           
static PropertySetterDescriptorImpl createSetter(PropertyDescriptor propertyDescriptor, boolean isDefault)
           
static boolean isDefaultPrimaryConstructor(ConstructorDescriptor constructor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_OF_METHOD_NAME

public static final Name VALUE_OF_METHOD_NAME

VALUES_METHOD_NAME

public static final Name VALUES_METHOD_NAME
Method Detail

createDefaultSetter

@NotNull
public static PropertySetterDescriptorImpl createDefaultSetter(@NotNull
                                                                       PropertyDescriptor propertyDescriptor)

createSetter

@NotNull
public static PropertySetterDescriptorImpl createSetter(@NotNull
                                                                PropertyDescriptor propertyDescriptor,
                                                                boolean isDefault)

createDefaultGetter

@NotNull
public static PropertyGetterDescriptorImpl createDefaultGetter(@NotNull
                                                                       PropertyDescriptor propertyDescriptor)

createGetter

@NotNull
public static PropertyGetterDescriptorImpl createGetter(@NotNull
                                                                PropertyDescriptor propertyDescriptor,
                                                                boolean isDefault)

createPrimaryConstructorForObject

@NotNull
public static ConstructorDescriptorImpl createPrimaryConstructorForObject(@NotNull
                                                                                  ClassDescriptor containingClass)

isDefaultPrimaryConstructor

public static boolean isDefaultPrimaryConstructor(@NotNull
                                                  ConstructorDescriptor constructor)

createEnumClassObjectValuesMethod

@NotNull
public static SimpleFunctionDescriptor createEnumClassObjectValuesMethod(@NotNull
                                                                                 ClassDescriptor classObject,
                                                                                 @NotNull
                                                                                 JetType returnType)

createEnumClassObjectValueOfMethod

@NotNull
public static SimpleFunctionDescriptor createEnumClassObjectValueOfMethod(@NotNull
                                                                                  ClassDescriptor classObject,
                                                                                  @NotNull
                                                                                  JetType returnType)

createReceiverParameterForCallable

@Nullable
public static ReceiverParameterDescriptor createReceiverParameterForCallable(@NotNull
                                                                                      CallableDescriptor owner,
                                                                                      @Nullable
                                                                                      JetType receiverParameterType)