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 |
SHORT
public static final MethodFormat SHORT
FULL
public static final MethodFormat FULL
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
- %s: Code source
format
public String format(Method method)
Copyright © 2012. All Rights Reserved.