Class AnnotationRestriction.Options

  • Enclosing class:
    AnnotationRestriction

    public static class AnnotationRestriction.Options
    extends Object
    Options that specify which annotations to consider when searching.
    Since:
    3.11
    • Field Detail

      • includePrimary

        private boolean includePrimary
      • includeInherited

        private boolean includeInherited
      • excludeDefaultValues

        private boolean excludeDefaultValues
    • Constructor Detail

      • Options

        public Options()
        Creates the default options.
    • Method Detail

      • includePrimary

        public boolean includePrimary()
        Should primary annotations be included in the search or not. Enabled by default.
      • includeInherited

        public boolean includeInherited()
        Should inherited annotations be included in the search or not. Disabled by default.
      • excludeDefaultValues

        public boolean excludeDefaultValues()
        Should default values (for project-specific annotation types) be excluded from the query or not. Disabled by default.