org.jbehave.core.steps
Class Stepdoc
java.lang.Object
org.jbehave.core.steps.Stepdoc
- All Implemented Interfaces:
- java.lang.Comparable<Stepdoc>
public class Stepdoc
- extends java.lang.Object
- implements java.lang.Comparable<Stepdoc>
A Stepdoc represents the documentation on a single candidate step, which includes:
- the associated annotation in the method of the
CandidateSteps
class
- the pattern to match the candidate step that is configured in the
annotation
- the alias patterns for the candidate step (optional)
- the method in the
CandidateSteps
class
- Author:
- Mauro Talevi
Constructor Summary |
Stepdoc(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String pattern,
java.lang.String[] aliasPatterns,
java.lang.reflect.Method method,
CandidateSteps candidateSteps)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Stepdoc
public Stepdoc(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
java.lang.String pattern,
java.lang.String[] aliasPatterns,
java.lang.reflect.Method method,
CandidateSteps candidateSteps)
getAnnotation
public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotation()
getPattern
public java.lang.String getPattern()
getAliasPatterns
public java.util.List<java.lang.String> getAliasPatterns()
getMethod
public java.lang.reflect.Method getMethod()
getCandidateSteps
public CandidateSteps getCandidateSteps()
getMethodSignature
public java.lang.String getMethodSignature()
- Method signature without "public void" prefix
- Returns:
- The method signature in String format
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(Stepdoc that)
- Specified by:
compareTo
in interface java.lang.Comparable<Stepdoc>
Copyright © 2003-2010. All Rights Reserved.