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.


Field Summary
static MethodFormat FULL
           
static MethodFormat SHORT
           
 
Constructor Summary
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
 

Field Detail

SHORT

public static final MethodFormat SHORT

FULL

public static final MethodFormat FULL
Constructor Detail

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

format

public String format(Method method)


Copyright © 2012. All Rights Reserved.