Interface ElementQuery.Result<T extends Element>

Type Parameters:
T - The element type.
Enclosing interface:
ElementQuery<T extends Element>

public static interface ElementQuery.Result<T extends Element>
Result interface when building a query.
  • Method Details

    • isOnlyAbstract

      boolean isOnlyAbstract()
      Returns:
      Whether to return only abstract methods
    • isOnlyInjected

      boolean isOnlyInjected()
      Returns:
      Whether to return only injection points
    • isOnlyConcrete

      boolean isOnlyConcrete()
      Returns:
      Whether to return only concrete methods
    • getElementType

      @NonNull @NonNull Class<T> getElementType()
      Returns:
      The element type
    • isOnlyAccessible

      boolean isOnlyAccessible()
      Returns:
      Whether to return only accessible members
    • getOnlyAccessibleFromType

      Optional<ClassElement> getOnlyAccessibleFromType()
      Returns:
      Get the type this element is only accessible from.
    • isOnlyDeclared

      boolean isOnlyDeclared()
      Returns:
      Whether to declare only declared members
    • isOnlyInstance

      boolean isOnlyInstance()
      Returns:
      Whether to return only instance methods
    • isOnlyStatic

      boolean isOnlyStatic()
      Returns:
      Whether to return only static methods / fields
      Since:
      4.0.0
    • isIncludeEnumConstants

      boolean isIncludeEnumConstants()
      Returns:
      Whether to include enum constants
      Since:
      3.4.0
    • isIncludeOverriddenMethods

      boolean isIncludeOverriddenMethods()
      Returns:
      Whether to include overridden methods
      Since:
      3.4.0
    • isIncludeHiddenElements

      boolean isIncludeHiddenElements()
      Returns:
      Whether to include hidden methods/fields
      Since:
      3.4.0
    • isExcludePropertyElements

      boolean isExcludePropertyElements()
      Returns:
      Whether to exclude property elements
      Since:
      4.0.0
    • getNamePredicates

      @NonNull @NonNull List<Predicate<String>> getNamePredicates()
      Returns:
      The name predicates
    • getTypePredicates

      Returns:
      The name predicates
      Since:
      3.0.0
    • getAnnotationPredicates

      @NonNull @NonNull List<Predicate<AnnotationMetadata>> getAnnotationPredicates()
      Returns:
      The annotation predicates
    • getModifierPredicates

      @NonNull @NonNull List<Predicate<Set<ElementModifier>>> getModifierPredicates()
      Returns:
      The modifier predicate
    • getElementPredicates

      @NonNull @NonNull List<Predicate<T>> getElementPredicates()
      Returns:
      The element predicates
    • withoutPredicates

      ElementQuery.Result<T> withoutPredicates()
      Creates a copy without the predicates.
      Returns:
      a copy without the predicates.
      Since:
      4.3.0