Class Parameter
java.lang.Object
com.google.common.reflect.Parameter
- All Implemented Interfaces:
- AnnotatedElement
Represents a method or constructor parameter.
- Since:
- 14.0
- Author:
- Ben Yu
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns theAnnotatedTypeof the parameter.<A extends Annotation>
 @Nullable AgetAnnotation(Class<A> annotationType) <A extends Annotation>
 A[]getAnnotationsByType(Class<A> annotationType) <A extends Annotation>
 @Nullable AgetDeclaredAnnotation(Class<A> annotationType) <A extends Annotation>
 A[]getDeclaredAnnotationsByType(Class<A> annotationType) Invokable<?, ?> Returns theInvokablethat declares this parameter.TypeToken<?> getType()Returns the type of the parameter.inthashCode()booleanisAnnotationPresent(Class<? extends Annotation> annotationType) toString()
- 
Method Details- 
getTypeReturns the type of the parameter.
- 
getDeclaringInvokable
- 
isAnnotationPresent- Specified by:
- isAnnotationPresentin interface- AnnotatedElement
 
- 
getAnnotation- Specified by:
- getAnnotationin interface- AnnotatedElement
 
- 
getAnnotations- Specified by:
- getAnnotationsin interface- AnnotatedElement
 
- 
getAnnotationsByType- Specified by:
- getAnnotationsByTypein interface- AnnotatedElement
- Since:
- 18.0
 
- 
getDeclaredAnnotations- Specified by:
- getDeclaredAnnotationsin interface- AnnotatedElement
- Since:
- 18.0
 
- 
getDeclaredAnnotation- Specified by:
- getDeclaredAnnotationin interface- AnnotatedElement
- Since:
- 18.0
 
- 
getDeclaredAnnotationsByType- Specified by:
- getDeclaredAnnotationsByTypein interface- AnnotatedElement
- Since:
- 18.0
 
- 
getAnnotatedTypeReturns theAnnotatedTypeof the parameter.- Since:
- 25.1 for guava-jre
 
- 
equals
- 
hashCode
- 
toString
 
-