Filters for selecting just the elements of interest from a
collection of elements. The returned sets and lists are new
collections and do use the argument as a backing store. The
methods in this class do not make any attempts to guard against
concurrent modifications of the arguments. The returned sets and
lists are mutable but unsafe for concurrent access. A returned set
has the same iteration order as the argument set to a method.
If iterables and sets containing {@code null} are passed as
arguments to methods in this class, a {@code NullPointerException}
will be thrown.
| Method from javax.lang.model.util.ElementFilter Detail: |
public static List<ExecutableElement> constructorsIn(Iterable<Element> elements) {
return listFilter(elements, CONSTRUCTOR_KIND, ExecutableElement.class);
}
Returns a list of constructors in {@code elements}. |
public static Set<ExecutableElement> constructorsIn(Set<Element> elements) {
return setFilter(elements, CONSTRUCTOR_KIND, ExecutableElement.class);
}
Returns a set of constructors in {@code elements}. |
public static List<VariableElement> fieldsIn(Iterable<Element> elements) {
return listFilter(elements, FIELD_KINDS, VariableElement.class);
}
Returns a list of fields in {@code elements}. |
public static Set<VariableElement> fieldsIn(Set<Element> elements) {
return setFilter(elements, FIELD_KINDS, VariableElement.class);
}
Returns a set of fields in {@code elements}. |
public static List<ExecutableElement> methodsIn(Iterable<Element> elements) {
return listFilter(elements, METHOD_KIND, ExecutableElement.class);
}
Returns a list of methods in {@code elements}. |
public static Set<ExecutableElement> methodsIn(Set<Element> elements) {
return setFilter(elements, METHOD_KIND, ExecutableElement.class);
}
Returns a set of methods in {@code elements}. |
public static List<PackageElement> packagesIn(Iterable<Element> elements) {
return listFilter(elements, PACKAGE_KIND, PackageElement.class);
}
Returns a list of packages in {@code elements}. |
public static Set<PackageElement> packagesIn(Set<Element> elements) {
return setFilter(elements, PACKAGE_KIND, PackageElement.class);
}
Returns a set of packages in {@code elements}. |
public static List<TypeElement> typesIn(Iterable<Element> elements) {
return listFilter(elements, TYPE_KINDS, TypeElement.class);
}
Returns a list of types in {@code elements}. |
public static Set<TypeElement> typesIn(Set<Element> elements) {
return setFilter(elements, TYPE_KINDS, TypeElement.class);
}
Returns a set of types in {@code elements}. |