public static enum ReflectionSupport.VisibilityConstraint extends Enum<ReflectionSupport.VisibilityConstraint>
Enum Constant and Description |
---|
ANY_VISIBILITY
Declared with any visibility.
|
AT_LEAST_PACKAGE
Declared with package-level (default), protected, or public
visibility.
|
AT_LEAST_PROTECTED
Declared with protected or public visibility.
|
DECLARED_PACKAGE
Declared with package-level (default) visibility (only).
|
DECLARED_PRIVATE
Declared with private visibility (only).
|
DECLARED_PROTECTED
Declared with protected visibility (only).
|
DECLARED_PUBLIC
Declared with public visibility (only).
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(int modifiers)
Determine if a given set of modifiers, expressed as an integer
mask, meets this visibility constraint.
|
boolean |
accepts(Member member)
Determine if a given member meets this visibility constraint.
|
String |
getMessage()
Get the string message describing this constraint, for use in
diagnostic output.
|
String |
toString() |
static ReflectionSupport.VisibilityConstraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReflectionSupport.VisibilityConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReflectionSupport.VisibilityConstraint DECLARED_PRIVATE
public static final ReflectionSupport.VisibilityConstraint DECLARED_PACKAGE
public static final ReflectionSupport.VisibilityConstraint DECLARED_PROTECTED
public static final ReflectionSupport.VisibilityConstraint DECLARED_PUBLIC
public static final ReflectionSupport.VisibilityConstraint AT_LEAST_PROTECTED
public static final ReflectionSupport.VisibilityConstraint AT_LEAST_PACKAGE
public static final ReflectionSupport.VisibilityConstraint ANY_VISIBILITY
public static ReflectionSupport.VisibilityConstraint[] values()
for (ReflectionSupport.VisibilityConstraint c : ReflectionSupport.VisibilityConstraint.values()) System.out.println(c);
public static ReflectionSupport.VisibilityConstraint valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean accepts(int modifiers)
modifiers
- The modifiers to check.public boolean accepts(Member member)
member
- The member to check.public String getMessage()
public String toString()
toString
in class Enum<ReflectionSupport.VisibilityConstraint>