Parameter (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
boolean
[equals](../../../java/lang/reflect/Parameter.html#equals-java.lang.Object-)([Object](../../../java/lang/Object.html "class in java.lang") obj)
Compares based on the executable and the index.
[AnnotatedType](../../../java/lang/reflect/AnnotatedType.html "interface in java.lang.reflect")
[getAnnotatedType](../../../java/lang/reflect/Parameter.html#getAnnotatedType--)()
Returns an AnnotatedType object that represents the use of a type to specify the type of the formal parameter represented by this Parameter.
<T extends [Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")> T
[getAnnotation](../../../java/lang/reflect/Parameter.html#getAnnotation-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang")<T> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.
[Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")[]
[getAnnotations](../../../java/lang/reflect/Parameter.html#getAnnotations--)()
Returns annotations that are present on this element.
<T extends [Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")> T[]
[getAnnotationsByType](../../../java/lang/reflect/Parameter.html#getAnnotationsByType-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang")<T> annotationClass)
Returns annotations that are associated with this element.
<T extends [Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")> T
[getDeclaredAnnotation](../../../java/lang/reflect/Parameter.html#getDeclaredAnnotation-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang")<T> annotationClass)
Returns this element's annotation for the specified type if such an annotation is directly present, else null.
[Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")[]
[getDeclaredAnnotations](../../../java/lang/reflect/Parameter.html#getDeclaredAnnotations--)()
Returns annotations that are directly present on this element.
<T extends [Annotation](../../../java/lang/annotation/Annotation.html "interface in java.lang.annotation")> T[]
[getDeclaredAnnotationsByType](../../../java/lang/reflect/Parameter.html#getDeclaredAnnotationsByType-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang")<T> annotationClass)
Returns this element's annotation(s) for the specified type if such annotations are either directly present or_indirectly present_.
[Executable](../../../java/lang/reflect/Executable.html "class in java.lang.reflect")
[getDeclaringExecutable](../../../java/lang/reflect/Parameter.html#getDeclaringExecutable--)()
Return the Executable
which declares this parameter.
int
[getModifiers](../../../java/lang/reflect/Parameter.html#getModifiers--)()
Get the modifier flags for this the parameter represented by this Parameter
object.
[String](../../../java/lang/String.html "class in java.lang")
[getName](../../../java/lang/reflect/Parameter.html#getName--)()
Returns the name of the parameter.
[Type](../../../java/lang/reflect/Type.html "interface in java.lang.reflect")
[getParameterizedType](../../../java/lang/reflect/Parameter.html#getParameterizedType--)()
Returns a Type
object that identifies the parameterized type for the parameter represented by this Parameter
object.
[Class](../../../java/lang/Class.html "class in java.lang")<?>
[getType](../../../java/lang/reflect/Parameter.html#getType--)()
Returns a Class
object that identifies the declared type for the parameter represented by thisParameter
object.
int
[hashCode](../../../java/lang/reflect/Parameter.html#hashCode--)()
Returns a hash code based on the executable's hash code and the index.
boolean
[isImplicit](../../../java/lang/reflect/Parameter.html#isImplicit--)()
Returns true
if this parameter is implicitly declared in source code; returns false
otherwise.
boolean
[isNamePresent](../../../java/lang/reflect/Parameter.html#isNamePresent--)()
Returns true if the parameter has a name according to the class file; returns false otherwise.
boolean
[isSynthetic](../../../java/lang/reflect/Parameter.html#isSynthetic--)()
Returns true
if this parameter is neither implicitly nor explicitly declared in source code; returns false
otherwise.
boolean
[isVarArgs](../../../java/lang/reflect/Parameter.html#isVarArgs--)()
Returns true
if this parameter represents a variable argument list; returns false
otherwise.
[String](../../../java/lang/String.html "class in java.lang")
[toString](../../../java/lang/reflect/Parameter.html#toString--)()
Returns a string describing this parameter.