cucumber.runtime.java
Class MethodFormat

java.lang.Object
  extended by cucumber.runtime.java.MethodFormat

public class MethodFormat
extends Object

Helper class for formatting a method signature to a shorter form.


Constructor Summary
MethodFormat()
          Creates an instance with default formatting.
MethodFormat(String format)
           
 
Method Summary
 String format(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

format

public String format(Method method)


Copyright © 2012. All Rights Reserved.