public class ImmutableAnnotation extends BaseAnnotation
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> |
elements |
protected java.lang.String |
type |
protected int |
visibility |
BY_TYPE| Constructor and Description |
|---|
ImmutableAnnotation(int visibility,
java.lang.String type,
java.util.Collection<? extends AnnotationElement> elements) |
ImmutableAnnotation(int visibility,
java.lang.String type,
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> |
getElements()
Gets a set of the name/value elements associated with this annotation.
|
java.lang.String |
getType()
Gets the type of this annotation.
|
int |
getVisibility()
Gets the visibility of this annotation.
|
static com.google.common.collect.ImmutableSet<ImmutableAnnotation> |
immutableSetOf(java.lang.Iterable<? extends Annotation> list) |
static ImmutableAnnotation |
of(Annotation annotation) |
compareTo, equals, hashCodeprotected final int visibility
@Nonnull protected final java.lang.String type
@Nonnull protected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements
public ImmutableAnnotation(int visibility,
@Nonnull
java.lang.String type,
@Nullable
java.util.Collection<? extends AnnotationElement> elements)
public ImmutableAnnotation(int visibility,
@Nonnull
java.lang.String type,
@Nullable
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements)
public static ImmutableAnnotation of(Annotation annotation)
public int getVisibility()
Annotation@Nonnull public java.lang.String getType()
Annotation@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> getElements()
Annotation@Nonnull public static com.google.common.collect.ImmutableSet<ImmutableAnnotation> immutableSetOf(@Nullable java.lang.Iterable<? extends Annotation> list)