com.tngtech.jgiven.report.model
Class StepFormatter.AnnotationBasedFormatter

java.lang.Object
  extended by com.tngtech.jgiven.report.model.StepFormatter.AnnotationBasedFormatter
All Implemented Interfaces:
ArgumentFormatter
Enclosing class:
StepFormatter

public static class StepFormatter.AnnotationBasedFormatter
extends java.lang.Object
implements ArgumentFormatter


Constructor Summary
StepFormatter.AnnotationBasedFormatter(AnnotationArgumentFormatter formatter, java.lang.annotation.Annotation annotation)
           
 
Method Summary
 java.lang.String format(java.lang.Object argumentToFormat, java.lang.String... formatterArguments)
          Format a single argument by taking optional formatter arguments into account.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepFormatter.AnnotationBasedFormatter

public StepFormatter.AnnotationBasedFormatter(AnnotationArgumentFormatter formatter,
                                              java.lang.annotation.Annotation annotation)
Method Detail

format

public java.lang.String format(java.lang.Object argumentToFormat,
                               java.lang.String... formatterArguments)
Description copied from interface: ArgumentFormatter
Format a single argument by taking optional formatter arguments into account.

Specified by:
format in interface ArgumentFormatter
Parameters:
argumentToFormat - the object to format
formatterArguments - optional arguments for the formatter to control the formatting.
Returns:
a formatted string