com.uber.nullaway.jarinfer.MethodAnnotationsRecord Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jar-infer-lib Show documentation
Show all versions of jar-infer-lib Show documentation
A fast annotation-based null checker for Java
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;
}
}