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, KotlinBuiltIns kotlinBuiltIns)
           
 
Method Summary
static void checkAnnotationType(JetAnnotationEntry entryElement, BindingTrace trace, OverloadResolutionResults<FunctionDescriptor> results)
           
  getAnnotationArgumentValue(BindingTrace trace, ValueParameterDescriptor valueParameter, ResolvedValueArgument resolvedArgument)
           
static void reportUnsupportedAnnotationForTypeParameter(JetTypeParameter jetTypeParameter, BindingTrace trace)
           
 Annotations resolveAndAppendAnnotationsFromModifiers(Annotations annotations, JetModifierList modifierList)
           
 OverloadResolutionResults<FunctionDescriptor> resolveAnnotationCall(JetAnnotationEntry annotationEntry, LexicalScope scope, BindingTrace trace)
           
 Annotations resolveAnnotationsWithArguments(LexicalScope scope, JetModifierList modifierList, BindingTrace trace)
           
 Annotations resolveAnnotationsWithArguments(LexicalScope scope, java.util.List<JetAnnotationEntry> annotationEntries, BindingTrace trace)
           
 Annotations resolveAnnotationsWithoutArguments(LexicalScope scope, JetModifierList modifierList, BindingTrace trace)
           
 Annotations resolveAnnotationsWithoutArguments(LexicalScope scope, java.util.List<JetAnnotationEntry> annotationEntries, BindingTrace trace)
           
 JetType resolveAnnotationType(LexicalScope scope, JetAnnotationEntry entryElement)
           
 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,
                          @NotNull
                          KotlinBuiltIns kotlinBuiltIns)
Method Detail

setTypeResolver

@Inject
public void setTypeResolver(@NotNull
                                   TypeResolver typeResolver)

resolveAnnotationsWithoutArguments

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

resolveAnnotationsWithArguments

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

resolveAnnotationsWithoutArguments

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

resolveAnnotationsWithArguments

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

resolveAndAppendAnnotationsFromModifiers

@NotNull
public Annotations resolveAndAppendAnnotationsFromModifiers(@NotNull
                                                                    Annotations annotations,
                                                                    @NotNull
                                                                    JetModifierList modifierList)

resolveAnnotationType

@NotNull
public JetType resolveAnnotationType(@NotNull
                                             LexicalScope scope,
                                             @NotNull
                                             JetAnnotationEntry entryElement)

checkAnnotationType

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

resolveAnnotationCall

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

reportUnsupportedAnnotationForTypeParameter

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

getAnnotationArgumentValue

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