IT. Expert System.

Java Standard Edition (SE)

ElementFilter


compact3
javax.lang.model.util

Class 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 null are passed as arguments to methods in this class, a 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.*;
         ...
              List<VariableElement> fs = fieldsIn(someClass.getEnclosedElements());
     
    Since:
    1.6
    • Method Detail

      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 315 / 158680774. Delta: 0.00786 с