|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.util.SignatureHelper
public class SignatureHelper
The Class SignatureHelper.
| Method Summary | |
|---|---|
static ConstructorSignature |
getAsSignature(Constructor<?> ctor)
Gets the as signature. |
static MethodSignature |
getAsSignature(Method method)
Gets the as signature. |
static Signature |
getAsSignature(String label)
Gets the as signature. |
static String |
getAsString(Signature sig)
The difference to Signature.toString() is that in case of a methode or constructor the return type is not part of result. |
static String |
getAsString(String type,
Signature sig)
Gets the as string. |
static boolean |
hasReturnType(Signature signature)
Returns true if the given signature is a MethodSignature and
the return value is not of type 'void'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getAsString(Signature sig)
sig - the sig
public static String getAsString(String type,
Signature sig)
type - the typesig - the sig
public static MethodSignature getAsSignature(Method method)
method - the method
public static ConstructorSignature getAsSignature(Constructor<?> ctor)
ctor - the ctor
public static Signature getAsSignature(String label)
throws ClassNotFoundException,
SecurityException,
NoSuchMethodException
label - e.g. "java.lang.String.substring(int)" or
"new java.lang.String()
ClassNotFoundException - the class not found exception
NoSuchMethodException - the no such method exception
SecurityException - the security exceptionpublic static boolean hasReturnType(Signature signature)
MethodSignature and
the return value is not of type 'void'.
signature - the signature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||