org.jetbrains.jet.lang.resolve.kotlin
Class AnnotationDescriptorLoader

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.kotlin.BaseDescriptorLoader
      extended by org.jetbrains.jet.lang.resolve.kotlin.AnnotationDescriptorLoader
All Implemented Interfaces:
AnnotationLoader

public class AnnotationDescriptorLoader
extends BaseDescriptorLoader
implements AnnotationLoader


Field Summary
 
Fields inherited from class org.jetbrains.jet.lang.resolve.kotlin.BaseDescriptorLoader
errorReporter, kotlinClassFinder, storage
 
Fields inherited from interface org.jetbrains.jet.descriptors.serialization.descriptors.AnnotationLoader
UNSUPPORTED
 
Constructor Summary
AnnotationDescriptorLoader()
           
 
Method Summary
 Annotations loadCallableAnnotations(ClassOrPackageFragmentDescriptor container, ProtoBuf.Callable proto, NameResolver nameResolver, AnnotatedCallableKind kind)
           
 Annotations loadClassAnnotations(ClassDescriptor descriptor, ProtoBuf.Class classProto)
           
 Annotations loadValueParameterAnnotations(ClassOrPackageFragmentDescriptor container, ProtoBuf.Callable callable, NameResolver nameResolver, AnnotatedCallableKind kind, ProtoBuf.Callable.ValueParameter proto)
           
static KotlinJvmBinaryClass.AnnotationArgumentVisitor resolveAnnotation(ClassId classId, java.util.List<AnnotationDescriptor> result, ModuleDescriptor moduleDescriptor)
           
 void setErrorReporter(ErrorReporter errorReporter)
           
 void setKotlinClassFinder(KotlinClassFinder kotlinClassFinder)
           
 void setModule(ModuleDescriptor module)
           
 void setStorage(DescriptorLoadersStorage storage)
           
 
Methods inherited from class org.jetbrains.jet.lang.resolve.kotlin.BaseDescriptorLoader
findClassWithAnnotationsAndInitializers, findKotlinClassByDescriptor, getCallableSignature, getPackagePartClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationDescriptorLoader

public AnnotationDescriptorLoader()
Method Detail

setModule

@Inject
public void setModule(ModuleDescriptor module)

setStorage

@Inject
public void setStorage(@NotNull
                              DescriptorLoadersStorage storage)
Specified by:
setStorage in class BaseDescriptorLoader

setKotlinClassFinder

@Inject
public void setKotlinClassFinder(@NotNull
                                        KotlinClassFinder kotlinClassFinder)
Specified by:
setKotlinClassFinder in class BaseDescriptorLoader

setErrorReporter

@Inject
public void setErrorReporter(@NotNull
                                    ErrorReporter errorReporter)
Specified by:
setErrorReporter in class BaseDescriptorLoader

loadClassAnnotations

@NotNull
public Annotations loadClassAnnotations(@NotNull
                                                ClassDescriptor descriptor,
                                                @NotNull
                                                ProtoBuf.Class classProto)
Specified by:
loadClassAnnotations in interface AnnotationLoader

resolveAnnotation

@Nullable
public static KotlinJvmBinaryClass.AnnotationArgumentVisitor resolveAnnotation(@NotNull
                                                                                        ClassId classId,
                                                                                        @NotNull
                                                                                        java.util.List<AnnotationDescriptor> result,
                                                                                        @NotNull
                                                                                        ModuleDescriptor moduleDescriptor)

loadCallableAnnotations

@NotNull
public Annotations loadCallableAnnotations(@NotNull
                                                   ClassOrPackageFragmentDescriptor container,
                                                   @NotNull
                                                   ProtoBuf.Callable proto,
                                                   @NotNull
                                                   NameResolver nameResolver,
                                                   @NotNull
                                                   AnnotatedCallableKind kind)
Specified by:
loadCallableAnnotations in interface AnnotationLoader

loadValueParameterAnnotations

@NotNull
public Annotations loadValueParameterAnnotations(@NotNull
                                                         ClassOrPackageFragmentDescriptor container,
                                                         @NotNull
                                                         ProtoBuf.Callable callable,
                                                         @NotNull
                                                         NameResolver nameResolver,
                                                         @NotNull
                                                         AnnotatedCallableKind kind,
                                                         @NotNull
                                                         ProtoBuf.Callable.ValueParameter proto)
Specified by:
loadValueParameterAnnotations in interface AnnotationLoader