org.jetbrains.kotlin.resolve
Class AnnotationResolver

java.lang.Object
  extended by org.jetbrains.kotlin.resolve.AnnotationResolver

public class AnnotationResolver
extends java.lang.Object


Constructor Summary
AnnotationResolver(CallResolver callResolver, ConstantExpressionEvaluator constantExpressionEvaluator, StorageManager storageManager)
           
 
Method Summary
static void checkAnnotationType(KtAnnotationEntry entryElement, BindingTrace trace, OverloadResolutionResults<FunctionDescriptor> results)
           
  getAnnotationArgumentValue(BindingTrace trace, ValueParameterDescriptor valueParameter, ResolvedValueArgument resolvedArgument)
           
static void reportUnsupportedAnnotationForTypeParameter(KtTypeParameter jetTypeParameter, BindingTrace trace)
           
 OverloadResolutionResults<FunctionDescriptor> resolveAnnotationCall(KtAnnotationEntry annotationEntry, LexicalScope scope, BindingTrace trace)
           
 Annotations resolveAnnotationsWithArguments(LexicalScope scope, KtModifierList modifierList, BindingTrace trace)
           
 Annotations resolveAnnotationsWithArguments(LexicalScope scope, java.util.List<KtAnnotationEntry> annotationEntries, BindingTrace trace)
           
 Annotations resolveAnnotationsWithoutArguments(LexicalScope scope, KtModifierList modifierList, BindingTrace trace)
           
 Annotations resolveAnnotationsWithoutArguments(LexicalScope scope, java.util.List<KtAnnotationEntry> annotationEntries, BindingTrace trace)
           
 KotlinType resolveAnnotationType(LexicalScope scope, KtAnnotationEntry entryElement, BindingTrace trace)
           
 void setTypeResolver(TypeResolver typeResolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationResolver

public AnnotationResolver(@NotNull
                          CallResolver callResolver,
                          @NotNull
                          ConstantExpressionEvaluator constantExpressionEvaluator,
                          @NotNull
                          StorageManager storageManager)
Method Detail

setTypeResolver

@Inject
public void setTypeResolver(@NotNull
                                   TypeResolver typeResolver)

resolveAnnotationsWithoutArguments

@NotNull
public Annotations resolveAnnotationsWithoutArguments(@NotNull
                                                              LexicalScope scope,
                                                              @Nullable
                                                              KtModifierList modifierList,
                                                              @NotNull
                                                              BindingTrace trace)

resolveAnnotationsWithArguments

@NotNull
public Annotations resolveAnnotationsWithArguments(@NotNull
                                                           LexicalScope scope,
                                                           @Nullable
                                                           KtModifierList modifierList,
                                                           @NotNull
                                                           BindingTrace trace)

resolveAnnotationsWithoutArguments

@NotNull
public Annotations resolveAnnotationsWithoutArguments(@NotNull
                                                              LexicalScope scope,
                                                              @NotNull
                                                              java.util.List<KtAnnotationEntry> annotationEntries,
                                                              @NotNull
                                                              BindingTrace trace)

resolveAnnotationsWithArguments

@NotNull
public Annotations resolveAnnotationsWithArguments(@NotNull
                                                           LexicalScope scope,
                                                           @NotNull
                                                           java.util.List<KtAnnotationEntry> annotationEntries,
                                                           @NotNull
                                                           BindingTrace trace)

resolveAnnotationType

@NotNull
public KotlinType resolveAnnotationType(@NotNull
                                                LexicalScope scope,
                                                @NotNull
                                                KtAnnotationEntry entryElement,
                                                @NotNull
                                                BindingTrace trace)

checkAnnotationType

public static void checkAnnotationType(@NotNull
                                       KtAnnotationEntry entryElement,
                                       @NotNull
                                       BindingTrace trace,
                                       @NotNull
                                       OverloadResolutionResults<FunctionDescriptor> results)

resolveAnnotationCall

@NotNull
public OverloadResolutionResults<FunctionDescriptor> resolveAnnotationCall(KtAnnotationEntry annotationEntry,
                                                                                   LexicalScope scope,
                                                                                   BindingTrace trace)

reportUnsupportedAnnotationForTypeParameter

public static void reportUnsupportedAnnotationForTypeParameter(@NotNull
                                                               KtTypeParameter jetTypeParameter,
                                                               @NotNull
                                                               BindingTrace trace)

getAnnotationArgumentValue

@Nullable
public  getAnnotationArgumentValue(@NotNull
                                                 BindingTrace trace,
                                                 @NotNull
                                                 ValueParameterDescriptor valueParameter,
                                                 @NotNull
                                                 ResolvedValueArgument resolvedArgument)