org.jbehave.core.parsers
Class RegexStepMatcher

java.lang.Object
  extended by org.jbehave.core.parsers.RegexStepMatcher
All Implemented Interfaces:
StepMatcher

public class RegexStepMatcher
extends java.lang.Object
implements StepMatcher


Constructor Summary
RegexStepMatcher(java.util.regex.Pattern pattern, java.lang.String[] parameterNames)
           
 
Method Summary
 boolean find(java.lang.String stepWithoutStartingWord)
           
 boolean matches(java.lang.String stepWithoutStartingWord)
           
 java.lang.String parameter(int matchedPosition)
           
 java.lang.String[] parameterNames()
           
 java.lang.String pattern()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexStepMatcher

public RegexStepMatcher(java.util.regex.Pattern pattern,
                        java.lang.String[] parameterNames)
Method Detail

matches

public boolean matches(java.lang.String stepWithoutStartingWord)
Specified by:
matches in interface StepMatcher

find

public boolean find(java.lang.String stepWithoutStartingWord)
Specified by:
find in interface StepMatcher

parameter

public java.lang.String parameter(int matchedPosition)
Specified by:
parameter in interface StepMatcher

parameterNames

public java.lang.String[] parameterNames()
Specified by:
parameterNames in interface StepMatcher

pattern

public java.lang.String pattern()
Specified by:
pattern in interface StepMatcher


Copyright © 2003-2010. All Rights Reserved.