ModifierSupport provides static utility methods for working with
class and member modifiers —
for example, to determine if a class or member is declared as
public, private, abstract, static, etc.
TestEngine and extension
authors are encouraged to use these supported methods in order to align with
the behavior of the JUnit Platform.
java.lang.reflect.Modifier , AnnotationSupport, ClassSupport, ReflectionSupport, ResourceSupport
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the class is abstractthe class to check; never clazz)nullDetermine if the supplied class is |
| public static boolean | Returns: true if the member is abstractthe class to check; never member)nullDetermine if the supplied member is |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the class is not abstractthe class to check; never clazz)nullDetermine if the supplied class is not |
| public static boolean | Returns: true if the member is not abstractthe class to check; never member)nullDetermine if the supplied member is not |
| public static boolean | Returns: true if the class is not finalthe class to check; never clazz)nullDetermine if the supplied class is not |
| public static boolean | Returns: true if the member is not finalthe member to check; never member)nullDetermine if the supplied member is not |
| public static boolean | Returns: true if the class is not privatethe class to check; never clazz)nullDetermine if the supplied class is not |
| public static boolean | Returns: true if the member is not privatethe member to check; never member)nullDetermine if the supplied member is not |
| public static boolean | Returns: true if the class is not staticthe class to check; never clazz)nullDetermine if the supplied class is not |
| public static boolean | Returns: true if the member is not staticthe member to check; never member)nullDetermine if the supplied member is not |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean |
| ModifierSupport | back to summary |
|---|---|
| private ModifierSupport() | |
| isAbstract | back to summary |
|---|---|
| public static boolean isAbstract(Class<?> clazz) Determine if the supplied class is
| |
| isAbstract | back to summary |
|---|---|
| public static boolean isAbstract(Member member) Determine if the supplied member is
| |
| isFinal | back to summary |
|---|---|
| public static boolean isFinal(Class<?> clazz) Determine if the supplied class is
| |
| isFinal | back to summary |
|---|---|
| public static boolean isFinal(Member member) Determine if the supplied member is
| |
| isNotAbstract | back to summary |
|---|---|
| public static boolean isNotAbstract(Class<?> clazz) Determine if the supplied class is not
| |
| isNotAbstract | back to summary |
|---|---|
| public static boolean isNotAbstract(Member member) Determine if the supplied member is not
| |
| isNotFinal | back to summary |
|---|---|
| public static boolean isNotFinal(Class<?> clazz) Determine if the supplied class is not
| |
| isNotFinal | back to summary |
|---|---|
| public static boolean isNotFinal(Member member) Determine if the supplied member is not
| |
| isNotPrivate | back to summary |
|---|---|
| public static boolean isNotPrivate(Class<?> clazz) Determine if the supplied class is not In other words this method will return
| |
| isNotPrivate | back to summary |
|---|---|
| public static boolean isNotPrivate(Member member) Determine if the supplied member is not In other words this method will return
| |
| isNotStatic | back to summary |
|---|---|
| public static boolean isNotStatic(Class<?> clazz) Determine if the supplied class is not
| |
| isNotStatic | back to summary |
|---|---|
| public static boolean isNotStatic(Member member) Determine if the supplied member is not
| |
| isPrivate | back to summary |
|---|---|
| public static boolean isPrivate(Class<?> clazz) Determine if the supplied class is
| |
| isPrivate | back to summary |
|---|---|
| public static boolean isPrivate(Member member) Determine if the supplied member is
| |
| isPublic | back to summary |
|---|---|
| public static boolean isPublic(Class<?> clazz) Determine if the supplied class is
| |
| isPublic | back to summary |
|---|---|
| public static boolean isPublic(Member member) Determine if the supplied member is
| |
| isStatic | back to summary |
|---|---|
| public static boolean isStatic(Class<?> clazz) Determine if the supplied class is
| |
| isStatic | back to summary |
|---|---|
| public static boolean isStatic(Member member) Determine if the supplied member is
| |