Class AntPathMatcher.AntPatternComparator.PatternInfo

java.lang.Object
com.igormaznitsa.jcp.utils.antpathmatcher.AntPathMatcher.AntPatternComparator.PatternInfo
Enclosing class:
AntPathMatcher.AntPatternComparator

private static final class AntPathMatcher.AntPatternComparator.PatternInfo extends Object
Value class that holds information about the pattern, e.g. number of occurrences of "*", "**", and "{" pattern elements.
  • Field Details

    • pattern

      private final String pattern
    • uriVars

      private int uriVars
    • singleWildcards

      private int singleWildcards
    • doubleWildcards

      private int doubleWildcards
    • catchAllPattern

      private boolean catchAllPattern
    • prefixPattern

      private boolean prefixPattern
    • length

      private Integer length
  • Constructor Details

    • PatternInfo

      public PatternInfo(String pattern)
  • Method Details

    • initCounters

      protected void initCounters()
    • getUriVars

      public int getUriVars()
    • getSingleWildcards

      public int getSingleWildcards()
    • getDoubleWildcards

      public int getDoubleWildcards()
    • isLeastSpecific

      public boolean isLeastSpecific()
    • isPrefixPattern

      public boolean isPrefixPattern()
    • getTotalCount

      public int getTotalCount()
    • getLength

      public int getLength()
      Returns the length of the given pattern, where template variables are considered to be 1 long.