ClassDescriptor
encapsulates functionality for a given Class
.
ClassOrdererContext
Modifier and Type | Method and Description |
---|---|
public < the annotation type A extends Annotation> Optional | Returns: anOptional containing the annotation; never null but
potentially emptythe annotation type to search for; never annotationType)null Find the first annotation of |
public < the annotation type A extends Annotation> List | Returns: the list of all such annotations found; neithernull nor
mutable, but potentially emptythe repeatable annotation type to search for; never
annotationType)null Find all repeatable annotations of
|
public String | Returns: the display name for this descriptor's class; nevernull
or blankGet the display name for this descriptor's |
public Class | |
public boolean | Returns: true if the annotation is present or meta-presentthe annotation type to search for; never annotationType)null Determine if an annotation of |
findAnnotation | back to summary |
---|---|
public <A extends Annotation> Optional Find the first annotation of
|
findRepeatableAnnotations | back to summary |
---|---|
public <A extends Annotation> List Find all repeatable annotations of
|
getDisplayName | back to summary |
---|---|
public String getDisplayName() Get the display name for this descriptor's
|
getTestClass | back to summary |
---|---|
public Class Get the class for this descriptor.
|
isAnnotated | back to summary |
---|---|
public boolean isAnnotated(Class<? extends Annotation> annotationType) Determine if an annotation of
|