类 ParameterSignature
- java.lang.Object
- org.junit.experimental.theories.ParameterSignature
public class ParameterSignature extends Object
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
canAcceptType(Class<?> candidate)
boolean
canAcceptValue(Object candidate)
boolean
canPotentiallyAcceptType(Class<?> candidate)
<T extends Annotation>
TfindDeepAnnotation(Class<T> annotationType)
<T extends Annotation>
TgetAnnotation(Class<T> annotationType)
List<Annotation>
getAnnotations()
Class<?>
getType()
boolean
hasAnnotation(Class<? extends Annotation> type)
static List<ParameterSignature>
signatures(Constructor<?> constructor)
static ArrayList<ParameterSignature>
signatures(Method method)
方法详细资料
signatures
public static ArrayList<ParameterSignature> signatures(Method method)
signatures
public static List<ParameterSignature> signatures(Constructor<?> constructor)
canAcceptValue
public boolean canAcceptValue(Object candidate)
canAcceptType
public boolean canAcceptType(Class<?> candidate)
canPotentiallyAcceptType
public boolean canPotentiallyAcceptType(Class<?> candidate)
getAnnotations
public List<Annotation> getAnnotations()
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)