All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uber.nullaway.jarinfer.MethodAnnotationsRecord Maven / Gradle / Ivy

There is a newer version: 0.11.3
Show newest version
package com.uber.nullaway.jarinfer;

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;

/** A record describing the annotations associated with a java method and its arguments. */
public final class MethodAnnotationsRecord {
  private final ImmutableSet methodAnnotations;
  // 0 means receiver
  private final ImmutableMap> argumentAnnotations;

  public MethodAnnotationsRecord(
      ImmutableSet methodAnnotations,
      ImmutableMap> argumentAnnotations) {
    this.methodAnnotations = methodAnnotations;
    this.argumentAnnotations = argumentAnnotations;
  }

  ImmutableSet getMethodAnnotations() {
    return methodAnnotations;
  }

  ImmutableMap> getArgumentAnnotations() {
    return argumentAnnotations;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy