Package io.inversion
Class Rule.RuleMatcher
- java.lang.Object
-
- io.inversion.Rule.RuleMatcher
-
-
Constructor Summary
Constructors Constructor Description RuleMatcher()RuleMatcher(java.lang.String spec)RuleMatcher(java.lang.String methods, io.inversion.utils.Path path)RuleMatcher(java.lang.String methods, java.lang.String... paths)RuleMatcher(java.lang.String methods, java.util.List<io.inversion.utils.Path> paths)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.RuleMatcherclearMethods()Rule.RuleMatcherclearPaths()booleanequals(java.lang.Object o)java.util.SortedSet<java.lang.String>getMethods()java.util.LinkedHashSet<io.inversion.utils.Path>getPaths()inthashCode()booleanhasMethod(java.lang.String method)static voidparse(Rule.RuleMatcher matcher, java.lang.String spec)java.lang.StringtoString()voidwithMethods(java.lang.String... methods)Rule.RuleMatcherwithPaths(io.inversion.utils.Path... paths)Rule.RuleMatcherwithPaths(java.util.List<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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
clearPaths
public Rule.RuleMatcher clearPaths()
-
clearMethods
public Rule.RuleMatcher clearMethods()
-
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()
-
-