@API(status=STABLE,
since="1.10")
public enum SearchOption
extends java.lang.Enum<SearchOption>
DEFAULT,
INCLUDE_ENCLOSING_CLASSES| Enum Constant and Description |
|---|
DEFAULT
Search the inheritance hierarchy (i.e., the current class, implemented
interfaces, and superclasses), but do not search on enclosing classes.
|
INCLUDE_ENCLOSING_CLASSES
Search the inheritance hierarchy as with the
DEFAULT search option
but also search the enclosing class
hierarchy for inner classes (i.e., a non-static member classes). |
| Modifier and Type | Method and Description |
|---|---|
static SearchOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SearchOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchOption DEFAULT
Class.getSuperclass(),
Class.getInterfaces()public static final SearchOption INCLUDE_ENCLOSING_CLASSES
DEFAULT search option
but also search the enclosing class
hierarchy for inner classes (i.e., a non-static member classes).public static SearchOption[] values()
for (SearchOption c : SearchOption.values()) System.out.println(c);
public static SearchOption valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null