public class ImmutableMethodParameter extends BaseMethodParameter
Reference.InvalidReferenceException| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> |
annotations |
protected java.lang.String |
name |
protected java.lang.String |
type |
| Constructor and Description |
|---|
ImmutableMethodParameter(java.lang.String type,
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations,
java.lang.String name) |
ImmutableMethodParameter(java.lang.String type,
java.util.Set<? extends Annotation> annotations,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<? extends Annotation> |
getAnnotations()
Gets a set of the annotations that are applied to this parameter.
|
java.lang.String |
getName()
Gets the name of this parameter, if available.
|
java.lang.String |
getSignature()
Gets the signature of this parameter, if available.
|
java.lang.String |
getType()
The type of this method parameter.
|
static com.google.common.collect.ImmutableList<ImmutableMethodParameter> |
immutableListOf(java.lang.Iterable<? extends MethodParameter> list) |
static ImmutableMethodParameter |
of(MethodParameter methodParameter) |
charAt, compareTo, equals, hashCode, length, subSequence, toStringvalidateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, hashCodevalidateReference@Nonnull protected final java.lang.String type
@Nonnull protected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations
@Nullable protected final java.lang.String name
public ImmutableMethodParameter(@Nonnull
java.lang.String type,
@Nullable
java.util.Set<? extends Annotation> annotations,
@Nullable
java.lang.String name)
public ImmutableMethodParameter(@Nonnull
java.lang.String type,
@Nullable
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations,
@Nullable
java.lang.String name)
public static ImmutableMethodParameter of(MethodParameter methodParameter)
@Nonnull public java.lang.String getType()
MethodParameter@Nonnull public java.util.Set<? extends Annotation> getAnnotations()
MethodParameter@Nullable public java.lang.String getName()
MethodParameter@Nullable public java.lang.String getSignature()
MethodParametergetSignature in interface LocalInfogetSignature in interface MethodParametergetSignature in class BaseMethodParameter@Nonnull public static com.google.common.collect.ImmutableList<ImmutableMethodParameter> immutableListOf(@Nullable java.lang.Iterable<? extends MethodParameter> list)