Package Summary  Overview Summary

class:ElementFilter [NONE]


  • public class ElementFilter
    extends Object
    
    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 null are passed as arguments to methods in this class, a NullPointerException will be thrown.

    Since:
    1.6

method:fieldsIn(java.lang.Iterable) [NONE]

  • fieldsIn

    public static List<VariableElement> fieldsIn​(Iterable<? extends Element> elements)
    Returns a list of fields in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a list of fields in elements

method:fieldsIn(java.util.Set) [NONE]

  • fieldsIn

    public static Set<VariableElement> fieldsIn​(Set<? extends Element> elements)
    Returns a set of fields in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a set of fields in elements

method:constructorsIn(java.lang.Iterable) [NONE]

  • constructorsIn

    public static List<ExecutableElement> constructorsIn​(Iterable<? extends Element> elements)
    Returns a list of constructors in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a list of constructors in elements

method:constructorsIn(java.util.Set) [NONE]

  • constructorsIn

    public static Set<ExecutableElement> constructorsIn​(Set<? extends Element> elements)
    Returns a set of constructors in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a set of constructors in elements

method:methodsIn(java.lang.Iterable) [NONE]

  • methodsIn

    public static List<ExecutableElement> methodsIn​(Iterable<? extends Element> elements)
    Returns a list of methods in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a list of methods in elements

method:methodsIn(java.util.Set) [NONE]

  • methodsIn

    public static Set<ExecutableElement> methodsIn​(Set<? extends Element> elements)
    Returns a set of methods in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a set of methods in elements

method:typesIn(java.lang.Iterable) [NONE]

  • typesIn

    public static List<TypeElement> typesIn​(Iterable<? extends Element> elements)
    Returns a list of types in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a list of types in elements

method:typesIn(java.util.Set) [NONE]

  • typesIn

    public static Set<TypeElement> typesIn​(Set<? extends Element> elements)
    Returns a set of types in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a set of types in elements

method:packagesIn(java.lang.Iterable) [NONE]

  • packagesIn

    public static List<PackageElement> packagesIn​(Iterable<? extends Element> elements)
    Returns a list of packages in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a list of packages in elements

method:packagesIn(java.util.Set) [NONE]

  • packagesIn

    public static Set<PackageElement> packagesIn​(Set<? extends Element> elements)
    Returns a set of packages in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a set of packages in elements

method:modulesIn(java.lang.Iterable) [NONE]

  • modulesIn

    public static List<ModuleElement> modulesIn​(Iterable<? extends Element> elements)
    Returns a list of modules in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a list of modules in elements
    Since:
    9

method:modulesIn(java.util.Set) [NONE]

  • modulesIn

    public static Set<ModuleElement> modulesIn​(Set<? extends Element> elements)
    Returns a set of modules in elements.
    Parameters:
    elements - the elements to filter
    Returns:
    a set of modules in elements
    Since:
    9

method:exportsIn(java.lang.Iterable) [NONE]

method:opensIn(java.lang.Iterable) [NONE]

method:providesIn(java.lang.Iterable) [NONE]

method:requiresIn(java.lang.Iterable) [NONE]

method:usesIn(java.lang.Iterable) [NONE]

© 2019 Oracle Corporation and/or its affiliates