public class RegexStepMatcher extends Object implements StepMatcher
Constructor and Description |
---|
RegexStepMatcher(StepType stepType,
String annotatedPattern,
Pattern regexPattern,
String[] parameterNames) |
Modifier and Type | Method and Description |
---|---|
boolean |
find(String stepWithoutStartingWord) |
boolean |
matches(String stepWithoutStartingWord) |
String |
parameter(int matchedPosition) |
String[] |
parameterNames() |
StepPattern |
pattern() |
public boolean matches(String stepWithoutStartingWord)
matches
in interface StepMatcher
public boolean find(String stepWithoutStartingWord)
find
in interface StepMatcher
public String parameter(int matchedPosition)
parameter
in interface StepMatcher
public String[] parameterNames()
parameterNames
in interface StepMatcher
public StepPattern pattern()
pattern
in interface StepMatcher
Copyright © 2003–2015. All rights reserved.