org.jbehave.core.steps
Class Stepdoc
java.lang.Object
org.jbehave.core.steps.Stepdoc
- All Implemented Interfaces:
- Comparable<Stepdoc>
public class Stepdoc
- extends Object
- implements Comparable<Stepdoc>
A Stepdoc represents the documentation on a single Step
, which
includes:
- the associated annotation in the
Steps
class
- the pattern to match the candidate step that configured in the annotation
- the aliases for the step (optional)
- the matched method inthe
Steps
class
- Author:
- Mauro Talevi
Stepdoc
public Stepdoc(Class<? extends Annotation> annotation,
String pattern,
String[] aliasPatterns,
Method method,
CandidateSteps candidateSteps)
getAnnotation
public Class<? extends Annotation> getAnnotation()
getPattern
public String getPattern()
getAliasPatterns
public List<String> getAliasPatterns()
getMethod
public Method getMethod()
getCandidateSteps
public CandidateSteps getCandidateSteps()
getMethodSignature
public String getMethodSignature()
- Method signature without "public void" prefix
- Returns:
- The method signature in String format
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(Stepdoc that)
- Specified by:
compareTo
in interface Comparable<Stepdoc>
Copyright © 2003-2010. All Rights Reserved.