Class FixtureParameterAssessment


  • public class FixtureParameterAssessment
    extends Object
    Convenience accessment for the FixtureParameter or ForkerParameter annotation, which eagerly load the requested values from the annotation.
    Author:
    tilois - Initial API and Implementation
    • Field Detail

      • ACCEPTED_ANNOTATION

        public static final com.google.common.collect.ImmutableSet<Class<? extends Annotation>> ACCEPTED_ANNOTATION
        List of acceptable annotation classes.
      • ACCEPTED_ANNOTATION_NAMES

        protected static final com.google.common.collect.ImmutableSet<String> ACCEPTED_ANNOTATION_NAMES
        List of annotation names.
      • PRIMITIVE_TYPE_NAMES

        protected static final com.google.common.collect.ImmutableSet<String> PRIMITIVE_TYPE_NAMES
        List of types known as primitive types.
      • IS_MANDATORY

        public static final com.google.common.base.Predicate<FixtureParameterAssessment> IS_MANDATORY
        Predicate to match mandatory parameters.
      • IS_NOT_NULLABLE

        public static final com.google.common.base.Predicate<FixtureParameterAssessment> IS_NOT_NULLABLE
        Predicate to match non-nullable parameters.
    • Constructor Detail

      • FixtureParameterAssessment

        public FixtureParameterAssessment​(JvmFixtureEvaluation anEvaluation,
                                          org.eclipse.xtext.util.Pair<org.eclipse.xtext.common.types.JvmFormalParameter,​org.eclipse.xtext.common.types.JvmAnnotationReference> aParameterTuple)
        Wraps the given parameter/annotation tuple with the help of the evaluation object.
        Parameters:
        anEvaluation - Evaluation which provides access to the annotation
        aParameterTuple - Parameter/annotation to wrap
    • Method Detail

      • isAssignable

        public static boolean isAssignable​(org.eclipse.xtext.common.types.JvmAnnotationReference anAnnotation)
        Checks if the given annotation is a valid annotation that can be wrapped.
        Parameters:
        anAnnotation - Annotation to check.
        Returns:
        true if it can be wrapped, false otherwise.
      • getName

        public String getName()
      • isMandatory

        public boolean isMandatory()
      • isNullable

        public boolean isNullable()