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
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static boolean | Returns: true if the class is abstract the class to check; never clazz)null Determine if the supplied class is |
public static boolean | Returns: true if the member is abstract the class to check; never member)null Determine if the supplied member is |
public static boolean | |
public static boolean | |
public static boolean | Returns: true if the class is not final the class to check; never clazz)null Determine if the supplied class is not |
public static boolean | Returns: true if the member is not final the member to check; never member)null Determine if the supplied member is not |
public static boolean | Returns: true if the class is not private the class to check; never clazz)null Determine if the supplied class is not |
public static boolean | Returns: true if the member is not private the member to check; never member)null Determine if the supplied member is not |
public static boolean | Returns: true if the class is not static the class to check; never clazz)null Determine if the supplied class is not |
public static boolean | Returns: true if the member is not static the member to check; never member)null Determine 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
|
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
|