This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.lang.model.util
class ElementFilter

java.lang.Object extended by javax.lang.model.util.ElementFilter

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 {@code null} are passed as arguments to methods in this class, a {@code NullPointerException} will be thrown.

Note that a static import statement can make the text of calls to the methods in this class more concise; for example:

     import static javax.lang.model.util.ElementFilter.*;
     ...
         {@code List} fs = fieldsIn(someClass.getEnclosedElements());
 


Method Summary
static List

          Returns a list of constructors in .
static Set
constructorsIn(Set elements)

          Returns a set of constructors in .
static List
fieldsIn(Iterable elements)

          Returns a list of fields in .
static Set
fieldsIn(Set elements)

          Returns a set of fields in .
static List
methodsIn(Iterable elements)

          Returns a list of methods in .
static Set
methodsIn(Set elements)

          Returns a set of methods in .
static List
packagesIn(Iterable elements)

          Returns a list of packages in .
static Set
packagesIn(Set elements)

          Returns a set of packages in .
static List
typesIn(Iterable elements)

          Returns a list of types in .
static Set
typesIn(Set elements)

          Returns a set of types in .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

constructorsIn

public static List constructorsIn(Iterable elements)
Returns a list of constructors in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a list of constructors in {@code elements}

constructorsIn

public static Set constructorsIn(Set elements)
Returns a set of constructors in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a set of constructors in {@code elements}

fieldsIn

public static List fieldsIn(Iterable elements)
Returns a list of fields in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a list of fields in {@code elements}

fieldsIn

public static Set fieldsIn(Set elements)
Returns a set of fields in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a set of fields in {@code elements}

methodsIn

public static List methodsIn(Iterable elements)
Returns a list of methods in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a list of methods in {@code elements}

methodsIn

public static Set methodsIn(Set elements)
Returns a set of methods in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a set of methods in {@code elements}

packagesIn

public static List packagesIn(Iterable elements)
Returns a list of packages in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a list of packages in {@code elements}

packagesIn

public static Set packagesIn(Set elements)
Returns a set of packages in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a set of packages in {@code elements}

typesIn

public static List typesIn(Iterable elements)
Returns a list of types in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a list of types in {@code elements}

typesIn

public static Set typesIn(Set elements)
Returns a set of types in {@code elements}.

Parameters:
elements - the elements to filter
Returns:
a set of types in {@code elements}


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.