Class DeclaringTypePredicate

  • All Implemented Interfaces:
    Predicate

    public class DeclaringTypePredicate
    extends DepthPredicate
    Filter that checks the declared type of an item
    • Field Detail

      • nodeType

        protected final String nodeType
        The nodetype to check
      • propsOnly

        protected final boolean propsOnly
        indicates if only props should be checked
    • Constructor Detail

      • DeclaringTypePredicate

        public DeclaringTypePredicate​(String nodeType,
                                      boolean propsOnly,
                                      int minDepth,
                                      int maxDepth)
        Creates a new filter for the given nodetype and flags.
        Parameters:
        nodeType - the nodetype name to check
        propsOnly - if true only properties are checked
        minDepth - the minimal depth
        maxDepth - the maximal depth
      • DeclaringTypePredicate

        public DeclaringTypePredicate​(String nodeType,
                                      boolean propsOnly)
        Creates a new filter for the given nodetype and flags
        Parameters:
        nodeType - the nodetype name to check
        propsOnly - if true only properties are checked