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 java.lang.Object
Value class that holds information about the pattern, e.g. number of occurrences of "*", "**", and "{" pattern elements.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
catchAllPattern
private int
doubleWildcards
private java.lang.Integer
length
private java.lang.String
pattern
private boolean
prefixPattern
private int
singleWildcards
private int
uriVars
-
Constructor Summary
Constructors Constructor Description PatternInfo(java.lang.String pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDoubleWildcards()
int
getLength()
Returns the length of the given pattern, where template variables are considered to be 1 long.int
getSingleWildcards()
int
getTotalCount()
int
getUriVars()
protected void
initCounters()
boolean
isLeastSpecific()
boolean
isPrefixPattern()
-
-
-
Field Detail
-
pattern
private final java.lang.String pattern
-
uriVars
private int uriVars
-
singleWildcards
private int singleWildcards
-
doubleWildcards
private int doubleWildcards
-
catchAllPattern
private boolean catchAllPattern
-
prefixPattern
private boolean prefixPattern
-
length
private java.lang.Integer length
-
-
Method Detail
-
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.
-
-