public class RegexPrefixCapturingPatternParser extends Object implements StepPatternParser
Constructor and Description |
---|
RegexPrefixCapturingPatternParser()
Creates a parser which captures parameters starting with $ in a matching
step and whose names are alphanumeric sequences.
|
RegexPrefixCapturingPatternParser(String prefix)
Creates a parser which captures parameters starting with a given prefix
in a matching step and whose names are alphanumeric sequences
|
RegexPrefixCapturingPatternParser(String prefix,
String characterClass)
Creates a parser which captures parameters starting with a given prefix
in a matching step and a given character class.
|
public RegexPrefixCapturingPatternParser()
public RegexPrefixCapturingPatternParser(String prefix)
prefix
- the prefix to use in capturing parameterspublic RegexPrefixCapturingPatternParser(String prefix, String characterClass)
prefix
- the prefix to use in capturing parameterscharacterClass
- the regex character class to find parameter namespublic String getPrefix()
public StepMatcher parseStep(StepType stepType, String stepPattern)
StepPatternParser
parseStep
in interface StepPatternParser
stepPattern
- the step patternCopyright © 2003-2014. All Rights Reserved.