1 /***************************************************************************** 2 * Copyright (C) Zephyr Business Solution. All rights reserved. * 3 * ------------------------------------------------------------------------- * 4 * The software in this package is published under the terms of the BSD * 5 * style license a copy of which has been included with this distribution in * 6 * the LICENSE.txt file. * 7 *****************************************************************************/ 8 9 /* 10 * Created on Aug 9, 2005 11 * 12 * Author Ben Yu 13 * ZBS 14 */ 15 package jfun.yan.function; 16 17 /** 18 * Represents any callable entity that has a signature. 19 * <p> 20 * Zephyr Business Solution 21 * 22 * @author Ben Yu 23 * 24 */ 25 public interface Signature<T> { 26 /** 27 * Gets the return type of the function. 28 * @return the return type. 29 */ 30 Class<T> getReturnType(); 31 /** 32 * Gets the parameter types of the function. 33 * @return the parameter types. 34 */ 35 Class[] getParameterTypes(); 36 37 /** 38 * Get the name of the signature. 39 */ 40 public String getName(); 41 } 42