public static enum ClassIndex.SearchKind extends Enum<ClassIndex.SearchKind>
ClassIndex.getElements(org.netbeans.api.java.source.ElementHandle<javax.lang.model.element.TypeElement>, java.util.Set<org.netbeans.api.java.source.ClassIndex.SearchKind>, java.util.Set<? extends org.netbeans.api.java.source.ClassIndex.SearchScopeType>)
and ClassIndex.getResources(org.netbeans.api.java.source.ElementHandle<javax.lang.model.element.TypeElement>, java.util.Set<org.netbeans.api.java.source.ClassIndex.SearchKind>, java.util.Set<? extends org.netbeans.api.java.source.ClassIndex.SearchScopeType>)
to restrict the search.Enum Constant and Description |
---|
FIELD_REFERENCES
The returned class has to access a field on given element
|
FUNCTIONAL_IMPLEMENTORS
The returned class contains a lambda implementation of given functional interface.
|
IMPLEMENTORS
The returned class has to extend or implement given element
|
METHOD_REFERENCES
The returned class has to call method on given element
|
TYPE_REFERENCES
The returned class contains references to the element type
|
Modifier and Type | Method and Description |
---|---|
static ClassIndex.SearchKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassIndex.SearchKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassIndex.SearchKind IMPLEMENTORS
public static final ClassIndex.SearchKind METHOD_REFERENCES
public static final ClassIndex.SearchKind FIELD_REFERENCES
public static final ClassIndex.SearchKind TYPE_REFERENCES
public static final ClassIndex.SearchKind FUNCTIONAL_IMPLEMENTORS
public static ClassIndex.SearchKind[] values()
public static ClassIndex.SearchKind 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 null