public class RegexpDefinitionPatternMatcher extends Object implements DefinitionPatternMatcher
Constructor and Description |
---|
RegexpDefinitionPatternMatcher(String pattern,
Definition definition)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Definition |
createDefinition(String definitionName)
Creates a definition, given the definition name, through the use of
pattern matching.
|
public RegexpDefinitionPatternMatcher(String pattern, Definition definition)
pattern
- The pattern to use, in string form.definition
- The definition to use as a basis.public Definition createDefinition(String definitionName)
createDefinition
in interface DefinitionPatternMatcher
definitionName
- The definition name to match.null
if not
matched.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.