Class ParameterSignature

java.lang.Object
org.junit.experimental.theories.ParameterSignature

public class ParameterSignature extends Object
  • Field Details

    • CONVERTABLE_TYPES_MAP

      private static final Map<Class<?>,Class<?>> CONVERTABLE_TYPES_MAP
    • type

      private final Class<?> type
    • annotations

      private final Annotation[] annotations
  • Constructor Details

    • ParameterSignature

      private ParameterSignature(Class<?> type, Annotation[] annotations)
  • Method Details

    • buildConvertableTypesMap

      private static Map<Class<?>,Class<?>> buildConvertableTypesMap()
    • putSymmetrically

      private static <T> void putSymmetrically(Map<T,T> map, T a, T b)
    • signatures

      public static ArrayList<ParameterSignature> signatures(Method method)
    • signatures

      public static List<ParameterSignature> signatures(Constructor<?> constructor)
    • signatures

      private static ArrayList<ParameterSignature> signatures(Class<?>[] parameterTypes, Annotation[][] parameterAnnotations)
    • canAcceptValue

      public boolean canAcceptValue(Object candidate)
    • canAcceptType

      public boolean canAcceptType(Class<?> candidate)
    • canPotentiallyAcceptType

      public boolean canPotentiallyAcceptType(Class<?> candidate)
    • isAssignableViaTypeConversion

      private boolean isAssignableViaTypeConversion(Class<?> targetType, Class<?> candidate)
    • getType

      public Class<?> getType()
    • getAnnotations

      public List<Annotation> getAnnotations()
    • hasAnnotation

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

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

      private <T extends Annotation> T findDeepAnnotation(Annotation[] annotations, Class<T> annotationType, int depth)
    • getAnnotation

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