cucumber.runtime.java
Class MethodFormat
java.lang.Object
cucumber.runtime.java.MethodFormat
public class MethodFormat
- extends Object
Helper class for formatting a method signature to a shorter form.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodFormat
public MethodFormat()
- Creates an instance with default formatting.
MethodFormat
public MethodFormat(String format)
- Parameters:
format
- the format string to use. There are several pattern tokens that can be used:
- %M: Modifiers
- %qr: Qualified return type
- %r: Unqualified return type
- %qc: Qualified class
- %c: Unqualified class
- %m: Method name
- %qa: Qualified arguments
- %a: Unqualified arguments
- %qe: Qualified exceptions
- %e: Unqualified exceptions
format
public String format(Method method)
Copyright © 2012. All Rights Reserved.