Package io.inversion

Class Rule.RuleMatcher

  • Enclosing class:
    Rule<R extends Rule>

    public static class Rule.RuleMatcher
    extends java.lang.Object
    • Field Detail

      • methods

        protected final java.util.TreeSet<java.lang.String> methods
      • paths

        protected final java.util.LinkedHashSet<io.inversion.utils.Path> paths
    • Constructor Detail

      • RuleMatcher

        public RuleMatcher()
      • RuleMatcher

        public RuleMatcher​(java.lang.String spec)
      • RuleMatcher

        public RuleMatcher​(java.lang.String methods,
                           java.lang.String... paths)
      • RuleMatcher

        public RuleMatcher​(java.lang.String methods,
                           io.inversion.utils.Path path)
      • RuleMatcher

        public RuleMatcher​(java.lang.String methods,
                           java.util.List<io.inversion.utils.Path> paths)
    • Method Detail

      • parse

        public static void parse​(Rule.RuleMatcher matcher,
                                 java.lang.String spec)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hasMethod

        public boolean hasMethod​(java.lang.String method)
      • withMethods

        public void withMethods​(java.lang.String... methods)
      • withPaths

        public Rule.RuleMatcher withPaths​(io.inversion.utils.Path... paths)
      • withPaths

        public Rule.RuleMatcher withPaths​(java.util.List<io.inversion.utils.Path> paths)
      • getMethods

        public java.util.SortedSet<java.lang.String> getMethods()
      • getPaths

        public java.util.LinkedHashSet<io.inversion.utils.Path> getPaths()