Compares based on the executable and the index.
public int hashCode()
Returns a hash code based on the executable's hash code and the index.
public boolean isNamePresent()
Returns true if the parameter has a name according to the class file; returns false otherwise. Whether a parameter has a name is determined by the MethodParameters attribute of the method which declares the parameter.
Returns a string describing this parameter. The format is the modifiers for the parameter, if any, in canonical order as recommended by The Java Language Specification, followed by the fully-qualified type of the parameter (excluding the last [] if the parameter is variable arity), followed by "..." if the parameter is variable arity, followed by a space, followed by the name of the parameter.
Returns the Executable
declaring this parameter.
Executable
declaring this parameter
public int getModifiers()
Returns the Java language
modifiersfor the parameter represented by this object.
Returns an unmodifiable set of the
access flagsfor the parameter represented by this object, possibly empty.
Returns the name of the parameter. If the parameter's name is
present, then this method returns the name provided by the class file. Otherwise, this method synthesizes a name of the form argN, where N is the index of the parameter in the descriptor of the method which declares the parameter.
()
Returns a Type
object that identifies the parameterized type for the parameter represented by this Parameter
object.
Type
object identifying the parameterized type of the parameter represented by this object
()
Returns a Class
object that identifies the declared type for the parameter represented by this Parameter
object.
Class
object identifying the declared type of the parameter represented by this object
Returns an AnnotatedType object that represents the use of a type to specify the type of the formal parameter represented by this Parameter.
AnnotatedType
object representing the use of a type to specify the type of the formal parameter represented by this Parameter
public boolean isImplicit()
Returns true
if this parameter is implicitly declared in source code; returns false
otherwise.
public boolean isSynthetic()
Returns true
if this parameter is neither implicitly nor explicitly declared in source code; returns false
otherwise.
public boolean isVarArgs()
Returns true
if this parameter represents a variable argument list; returns false
otherwise.
true
if an only if this parameter represents a variable argument list.
Returns this element's annotation for the specified type if such an annotation is
present, else null.
Note that any annotation returned by this method is a declaration annotation.
getAnnotation
in interface AnnotatedElement
T
- the type of the annotation to query for and return if present
annotationClass
- the Class object corresponding to the annotation type
NullPointerException
- if the given annotation class is null
Returns annotations that are
associatedwith this element. If there are no annotations
associatedwith this element, the return value is an array of length 0. The difference between this method and
AnnotatedElement.getAnnotation(Class)
is that this method detects if its argument is a
repeatable annotation type(JLS
9.6), and if so, attempts to find one or more annotations of that type by "looking through" a container annotation. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.
Note that any annotations returned by this method are declaration annotations.
getAnnotationsByType
in interface AnnotatedElement
T
- the type of the annotation to query for and return if present
annotationClass
- the Class object corresponding to the annotation type
NullPointerException
- if the given annotation class is null
Returns annotations that are
directly presenton this element. This method ignores inherited annotations. If there are no annotations
directly presenton this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.
Note that any annotations returned by this method are declaration annotations.
getDeclaredAnnotations
in interface AnnotatedElement
Returns this element's annotation for the specified type if such an annotation is
directly present, else null. This method ignores inherited annotations. (Returns null if no annotations are directly present on this element.)
Note that any annotation returned by this method is a declaration annotation.
getDeclaredAnnotation
in interface AnnotatedElement
T
- the type of the annotation to query for and return if directly present
annotationClass
- the Class object corresponding to the annotation type
NullPointerException
- if the given annotation class is null
Returns this element's annotation(s) for the specified type if such annotations are either
directly presentor
indirectly present. This method ignores inherited annotations. If there are no specified annotations directly or indirectly present on this element, the return value is an array of length 0. The difference between this method and
AnnotatedElement.getDeclaredAnnotation(Class)
is that this method detects if its argument is a
repeatable annotation type(JLS
9.6), and if so, attempts to find one or more annotations of that type by "looking through" a container annotation if one is present. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.
Note that any annotations returned by this method are declaration annotations.
getDeclaredAnnotationsByType
in interface AnnotatedElement
T
- the type of the annotation to query for and return if directly or indirectly present
annotationClass
- the Class object corresponding to the annotation type
NullPointerException
- if the given annotation class is null
Returns annotations that are
presenton this element. If there are no annotations
presenton this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.
Note that any annotations returned by this method are declaration annotations.
getAnnotations
in interface AnnotatedElement
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4