public class StringTemplateMatcher.StringTemplateMatcherCompiled
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
int |
macrosCount()
Returns macros count.
|
StringTemplateMatcher.Match[] |
match(java.lang.String input)
Returns all the matches or the empty array if no matches found.
|
boolean |
matches(java.lang.String input)
Returns
true if the input matches the compiled pattern. |
java.lang.String[] |
names() |
java.lang.String[] |
patterns()
Returns all patterns.
|
public java.lang.String[] names()
public java.lang.String[] patterns()
null
if some macro does not define a pattern.public int macrosCount()
public boolean matches(java.lang.String input)
true if the input matches the compiled pattern.public StringTemplateMatcher.Match[] match(java.lang.String input)