Known Direct Subclasses |
Stub implementation of Executable. The actual implementation is in Method.h and Method.m, so the declared methods in this class should match the actual methods implemented in order to catch unsupported API references.
See Also
Inherited Constant Summary
Public Constructor Summary
Public Method Summary
<T extends Annotation> T |
getAnnotation(Class<T> cls)
Returns this element's annotation for the specified type if
such an annotation is present, else null.
|
<T extends Annotation> T[] |
getAnnotationsByType(Class<T> cls)
|
Annotation[] |
getDeclaredAnnotations()
Returns annotations that are directly present on this element.
|
abstract Class<?> |
getDeclaringClass()
Returns the Class object representing the class or interface
that declares the member or constructor represented by this Member.
|
abstract Class[]<?> | |
Type[] | |
Type[] | |
abstract int |
getModifiers()
Returns the Java language modifiers for the member or
constructor represented by this Member, as an integer.
|
abstract String |
getName()
Returns the simple name of the underlying member or constructor
represented by this Member.
|
abstract Annotation[][] | |
int | |
abstract Class[]<?> | |
Parameter[] | |
abstract TypeVariable[]<?> |
getTypeParameters()
Returns an array of
TypeVariable objects that
represent the type variables declared by the generic
declaration represented by this GenericDeclaration
object, in declaration order. |
boolean |
isSynthetic()
Returns
true if this member was introduced by
the compiler; returns false otherwise. |
boolean | |
abstract String |
Inherited Method Summary
Public Constructors
public Executable ()
Public Methods
public T getAnnotation (Class<T> cls)
Returns this element's annotation for the specified type if such an annotation is present, else null.
Parameters
cls | the Class object corresponding to the annotation type |
---|
Returns
- this element's annotation for the specified annotation type if present on this element, else null
public Annotation[] getDeclaredAnnotations ()
Returns annotations that are directly present on this element. This method ignores inherited annotations. If there are no annotations directly present on 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.
Returns
- annotations directly present on this element
public abstract Class<?> getDeclaringClass ()
Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.
Returns
- an object representing the declaring class of the underlying member
public abstract int getModifiers ()
Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. The Modifier class should be used to decode the modifiers in the integer.
Returns
- the Java language modifiers for the underlying member
public abstract String getName ()
Returns the simple name of the underlying member or constructor represented by this Member.
Returns
- the simple name of the underlying member
public int getParameterCount ()
public abstract TypeVariable[]<?> getTypeParameters ()
Returns an array of TypeVariable
objects that
represent the type variables declared by the generic
declaration represented by this GenericDeclaration
object, in declaration order. Returns an array of length 0 if
the underlying generic declaration declares no type variables.
Returns
- an array of
TypeVariable
objects that represent the type variables declared by this generic declaration
public boolean isSynthetic ()
Returns true
if this member was introduced by
the compiler; returns false
otherwise.
Returns
- true if and only if this member was introduced by the compiler.