public class NdnRegexComponentMatcher extends NdnRegexMatcherBase
NdnRegexMatcherBase.Error, NdnRegexMatcherBase.NdnRegexExprTypebackrefManager_, expr_, matchers_, matchResult_, type_| Constructor and Description |
|---|
NdnRegexComponentMatcher(String expr,
NdnRegexBackrefManager backrefManager) |
NdnRegexComponentMatcher(String expr,
NdnRegexBackrefManager backrefManager,
boolean isExactMatch)
Create a RegexComponent matcher from expr.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
compile()
Compile the regular expression to generate more matchers when necessary.
|
boolean |
match(Name name,
int offset,
int len) |
getExpr, getMatchResultpublic NdnRegexComponentMatcher(String expr, NdnRegexBackrefManager backrefManager, boolean isExactMatch) throws NdnRegexMatcherBase.Error
expr - The standard regular expression to match a component.backrefManager - The back reference manager.isExactMatch - The flag to provide exact match.NdnRegexMatcherBase.Errorpublic NdnRegexComponentMatcher(String expr, NdnRegexBackrefManager backrefManager) throws NdnRegexMatcherBase.Error
NdnRegexMatcherBase.Errorpublic boolean match(Name name, int offset, int len) throws NdnRegexMatcherBase.Error
match in class NdnRegexMatcherBaseNdnRegexMatcherBase.Errorprotected void compile()
throws NdnRegexMatcherBase.Error
compile in class NdnRegexMatcherBaseNdnRegexMatcherBase.ErrorCopyright © 2019. All rights reserved.