public abstract class AccessibilityPredicate
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
AccessibilityPredicate.AnyAccessibilityPredicate
AnyAccessibilityPredicate is a
AccessibilityPredicate that always returns true. |
private static class |
AccessibilityPredicate.NotPrivateAccessibilityPredicate
NotPrivateAccessibilityPredicate is a
AccessibilityPredicate that returns true in the
case that the class/method/constructor/field is not declared to be private. |
static class |
AccessibilityPredicate.PackageAccessibilityPredicate
A predicate that tests for accessibility of a class, method, constructor, or field relative to
a particular package.
|
private static class |
AccessibilityPredicate.PublicAccessibilityPredicate
PublicAccessibilityPredicate is a
AccessibilityPredicate that returns true in the case
that the class/method/constructor/field is public. |
| Modifier and Type | Field and Description |
|---|---|
static AccessibilityPredicate |
IS_ANY
A predicate that always returns true.
|
static AccessibilityPredicate |
IS_NOT_PRIVATE
A predicate that returns true for non-private elements.
|
static AccessibilityPredicate |
IS_PUBLIC
A predicate that returns true for public elements.
|
| Constructor and Description |
|---|
AccessibilityPredicate() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isAccessible(java.lang.Class<?> c)
Determines whether this AccessibilityPredicate considers a
Class accessible. |
abstract boolean |
isAccessible(java.lang.reflect.Executable e)
Determines whether this AccessibilityPredicate considers a
Method or Constructor accessible. |
abstract boolean |
isAccessible(java.lang.reflect.Field f)
Determines whether this AccessibilityPredicate considers a
Field accessible. |
public static AccessibilityPredicate IS_PUBLIC
public static AccessibilityPredicate IS_NOT_PRIVATE
public static AccessibilityPredicate IS_ANY
public abstract boolean isAccessible(java.lang.Class<?> c)
Class accessible.c - the class object to checkpublic abstract boolean isAccessible(java.lang.reflect.Executable e)
Method or Constructor accessible. Does not test the accessibility of the containing class.e - the method/constructor object to checkpublic abstract boolean isAccessible(java.lang.reflect.Field f)
Field accessible. Does not
test the accessibility of the containing class.f - the field object to check