Interface ClassFilter.UnionBuilder

    • Method Detail

      • enclosedIn

        ClassFilter.UnionBuilder enclosedIn​(java.lang.Class<?> enclosing)
        Returns classes nested (directly or indirectly) in given class.
      • enclosedDirectlyIn

        ClassFilter.UnionBuilder enclosedDirectlyIn​(java.lang.Class<?> enclosing)
        Returns classes nested directly in given class.
      • annotatedWith

        ClassFilter.UnionBuilder annotatedWith​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
        Returns classes annotated with given annotation.

        As opposed to ClassIndex.getAnnotated(Class) this method only works if annotation is itself annotation with Retention set to RetentionPolicy.RUNTIME.

        Throws:
        java.lang.IllegalStateException - if annotation retention policy is not set equal to RetentionPolicy.RUNTIME.
      • withModifiers

        ClassFilter.UnionBuilder withModifiers​(int modifiers)
        Returns classes marked with given modifiers.
        Parameters:
        modifiers - modifiers to expect, see Modifier
      • withoutModifiers

        ClassFilter.UnionBuilder withoutModifiers​(int modifiers)
        Returns classes not marked with given modifiers.
        Parameters:
        modifiers - modifiers to expect, see Modifier