Package com.tngtech.jgiven.report.model
Class StepFormatter.AnnotationBasedFormatter
- java.lang.Object
-
- 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
Constructors Constructor Description AnnotationBasedFormatter(AnnotationArgumentFormatter formatter, java.lang.annotation.Annotation annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.lang.Object argumentToFormat, java.lang.String... formatterArguments)
Format a single argument by taking optional formatter arguments into account.
-
-
-
Constructor Detail
-
AnnotationBasedFormatter
public 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 interfaceArgumentFormatter
- Parameters:
argumentToFormat
- the object to formatformatterArguments
- optional arguments for the formatter to control the formatting.- Returns:
- a formatted string
-
-