Package jodd.util
Class StringTemplateMatcher.StringTemplateMatcherCompiled
- java.lang.Object
-
- jodd.util.StringTemplateMatcher.StringTemplateMatcherCompiled
-
- Enclosing class:
- StringTemplateMatcher
public class StringTemplateMatcher.StringTemplateMatcherCompiled extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intmacrosCount()Returns macros count.StringTemplateMatcher.Match[]match(java.lang.String input)Returns all the matches or the empty array if no matches found.booleanmatches(java.lang.String input)Returnstrueif the input matches the compiled pattern.java.lang.String[]names()java.lang.String[]patterns()Returns all patterns.
-
-
-
Method Detail
-
names
public java.lang.String[] names()
-
patterns
public java.lang.String[] patterns()
Returns all patterns. Some elements may benullif some macro does not define a pattern.
-
macrosCount
public int macrosCount()
Returns macros count.
-
matches
public boolean matches(java.lang.String input)
Returnstrueif the input matches the compiled pattern.
-
match
public StringTemplateMatcher.Match[] match(java.lang.String input)
Returns all the matches or the empty array if no matches found.
-
-