@Beta public final class Parameter extends java.lang.Object implements java.lang.reflect.AnnotatedElement
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.AnnotatedType |
annotatedType |
private ImmutableList<java.lang.annotation.Annotation> |
annotations |
private Invokable<?,?> |
declaration |
private int |
position |
private TypeToken<?> |
type |
Constructor and Description |
---|
Parameter(Invokable<?,?> declaration,
int position,
TypeToken<?> type,
java.lang.annotation.Annotation[] annotations,
java.lang.reflect.AnnotatedType annotatedType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.reflect.AnnotatedType |
getAnnotatedType() |
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> annotationType) |
java.lang.annotation.Annotation[] |
getAnnotations() |
<A extends java.lang.annotation.Annotation> |
getAnnotationsByType(java.lang.Class<A> annotationType) |
<A extends java.lang.annotation.Annotation> |
getDeclaredAnnotation(java.lang.Class<A> annotationType) |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
<A extends java.lang.annotation.Annotation> |
getDeclaredAnnotationsByType(java.lang.Class<A> annotationType) |
Invokable<?,?> |
getDeclaringInvokable()
Returns the
Invokable that declares this parameter. |
TypeToken<?> |
getType()
Returns the type of the parameter.
|
int |
hashCode() |
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
java.lang.String |
toString() |
private final Invokable<?,?> declaration
private final int position
private final TypeToken<?> type
private final ImmutableList<java.lang.annotation.Annotation> annotations
private final java.lang.reflect.AnnotatedType annotatedType
public TypeToken<?> getType()
public Invokable<?,?> getDeclaringInvokable()
Invokable
that declares this parameter.public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
isAnnotationPresent
in interface java.lang.reflect.AnnotatedElement
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
getAnnotation
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface java.lang.reflect.AnnotatedElement
public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(java.lang.Class<A> annotationType)
getAnnotationsByType
in interface java.lang.reflect.AnnotatedElement
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface java.lang.reflect.AnnotatedElement
public <A extends java.lang.annotation.Annotation> A getDeclaredAnnotation(java.lang.Class<A> annotationType)
getDeclaredAnnotation
in interface java.lang.reflect.AnnotatedElement
public <A extends java.lang.annotation.Annotation> A[] getDeclaredAnnotationsByType(java.lang.Class<A> annotationType)
getDeclaredAnnotationsByType
in interface java.lang.reflect.AnnotatedElement
public java.lang.reflect.AnnotatedType getAnnotatedType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object