1 package com.uber.nullaway.jarinfer; 2 3 import com.google.common.collect.ImmutableMap; 4 import com.google.common.collect.ImmutableSet; 5 6 /** A record describing the annotations associated with a java method and its arguments. */ 7 final class MethodAnnotationsRecord { 8 private final ImmutableSet<String> methodAnnotations; 9 // 0 means receiver 10 private final ImmutableMap<Integer, ImmutableSet<String>> argumentAnnotations; 11 MethodAnnotationsRecord( ImmutableSet<String> methodAnnotations, ImmutableMap<Integer, ImmutableSet<String>> argumentAnnotations)12 MethodAnnotationsRecord( 13 ImmutableSet<String> methodAnnotations, 14 ImmutableMap<Integer, ImmutableSet<String>> argumentAnnotations) { 15 this.methodAnnotations = methodAnnotations; 16 this.argumentAnnotations = argumentAnnotations; 17 } 18 getMethodAnnotations()19 ImmutableSet<String> getMethodAnnotations() { 20 return methodAnnotations; 21 } 22 getArgumentAnnotations()23 ImmutableMap<Integer, ImmutableSet<String>> getArgumentAnnotations() { 24 return argumentAnnotations; 25 } 26 } 27