org.easetech.easytest.internal
Class EasyParamSignature

java.lang.Object
  extended by org.easetech.easytest.internal.EasyParamSignature

public class EasyParamSignature
extends Object

A single instance of EasyParamSignature identifies a single test method parameter associated with the test method

Author:
Anuj Kumar

Method Summary
 boolean canAcceptArrayType(Class<?> type)
           
 boolean canAcceptType(Class<?> candidate)
           
<T extends Annotation>
T
findDeepAnnotation(Class<T> annotationType)
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationType)
           
 Class<?> getGenericParameterArgType()
           
 Boolean getIsGenericParameter()
           
 Annotation[] getParameterAnnotations()
           
 Class<?> getParameterType()
           
 boolean hasAnnotation(Class<? extends Annotation> type)
           
static List<EasyParamSignature> signatures(Constructor<?> constructor)
           
static ArrayList<EasyParamSignature> signatures(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

signatures

public static ArrayList<EasyParamSignature> signatures(Method method)

signatures

public static List<EasyParamSignature> signatures(Constructor<?> constructor)

canAcceptType

public boolean canAcceptType(Class<?> candidate)

getIsGenericParameter

public Boolean getIsGenericParameter()

getGenericParameterArgType

public Class<?> getGenericParameterArgType()

getParameterType

public Class<?> getParameterType()

getParameterAnnotations

public Annotation[] getParameterAnnotations()

canAcceptArrayType

public boolean canAcceptArrayType(Class<?> type)

hasAnnotation

public boolean hasAnnotation(Class<? extends Annotation> type)

findDeepAnnotation

public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType)

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType)


Copyright © 2013. All Rights Reserved.