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, storage
 
Fields inherited from interface org.jetbrains.jet.descriptors.serialization.descriptors.AnnotationLoader
UNSUPPORTED
 
Constructor Summary
AnnotationDescriptorLoader(ModuleDescriptor module, DescriptorLoadersStorage storage, KotlinClassFinder kotlinClassFinder, ErrorReporter errorReporter)
           
 
Method Summary
 java.util.List<AnnotationDescriptor> loadCallableAnnotations(ClassOrPackageFragmentDescriptor container, ProtoBuf.Callable proto, NameResolver nameResolver, AnnotatedCallableKind kind)
           
 java.util.List<AnnotationDescriptor> loadClassAnnotations(ClassDescriptor descriptor, ProtoBuf.Class classProto, NameResolver nameResolver)
           
 java.util.List<AnnotationDescriptor> 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)
           
 
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(@NotNull
                                  ModuleDescriptor module,
                                  @NotNull
                                  DescriptorLoadersStorage storage,
                                  @NotNull
                                  KotlinClassFinder kotlinClassFinder,
                                  @NotNull
                                  ErrorReporter errorReporter)
Method Detail

loadClassAnnotations

@NotNull
public java.util.List<AnnotationDescriptor> loadClassAnnotations(@NotNull
                                                                         ClassDescriptor descriptor,
                                                                         @NotNull
                                                                         ProtoBuf.Class classProto,
                                                                         @NotNull
                                                                         NameResolver nameResolver)
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 java.util.List<AnnotationDescriptor> loadCallableAnnotations(@NotNull
                                                                            ClassOrPackageFragmentDescriptor container,
                                                                            @NotNull
                                                                            ProtoBuf.Callable proto,
                                                                            @NotNull
                                                                            NameResolver nameResolver,
                                                                            @NotNull
                                                                            AnnotatedCallableKind kind)
Specified by:
loadCallableAnnotations in interface AnnotationLoader

loadValueParameterAnnotations

@NotNull
public java.util.List<AnnotationDescriptor> 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