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