Package jodd.util
Class StringTemplateMatcher.StringTemplateMatcherCompiled
java.lang.Object
jodd.util.StringTemplateMatcher.StringTemplateMatcherCompiled
- Enclosing class:
StringTemplateMatcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns macros count.Returns all the matches or the empty array if no matches found.booleanReturnstrueif the input matches the compiled pattern.String[]names()String[]patterns()Returns all patterns.private String[]Process input in two modes: matching mode and extracting mode.
-
Field Details
-
macrosCount
private final int macrosCount -
names
-
patterns
-
fixed
-
-
Constructor Details
-
StringTemplateMatcherCompiled
private StringTemplateMatcherCompiled(int macrosCount) -
StringTemplateMatcherCompiled
private StringTemplateMatcherCompiled()
-
-
Method Details
-
names
-
patterns
Returns all patterns. Some elements may benullif some macro does not define a pattern. -
macrosCount
public int macrosCount()Returns macros count. -
matches
Returnstrueif the input matches the compiled pattern. -
match
Returns all the matches or the empty array if no matches found. -
process
Process input in two modes: matching mode and extracting mode.- Returns:
- string array of extracted macro values (null element is allowed) or null
-