Class SequencesPredicate

  • All Implemented Interfaces:
    Serializable, Cloneable

    public final class SequencesPredicate
    extends BinaryDerivation
    Derived variable representing the selecting of elements of one sequence based on the values of another sequence. We only predicate if we know that both sequences came from the same original data structure. Derived type is the same as that of the first sequence.
    See Also:
    Serialized Form
    • Field Detail

      • debug

        public static final Logger debug
        Debug tracer.
      • dkconfig_enabled

        public static boolean dkconfig_enabled
        Boolean. True iff SequencesPredicate derived variables should be generated.
      • dkconfig_fieldOnly

        public static boolean dkconfig_fieldOnly
        Boolean. True if Daikon should only generate derivations on fields of the same data structure.
      • dkconfig_boolOnly

        public static boolean dkconfig_boolOnly
        Boolean. True if Daikon should only generate derivations on boolean predicates.
    • Method Detail

      • makeVarInfo

        protected VarInfo makeVarInfo()
        Description copied from class: Derivation
        Used by all child classes to actually create the VarInfo this represents, after which it is interned for getVarInfo().
        Specified by:
        makeVarInfo in class Derivation
      • isSameFormula

        @Pure
        public boolean isSameFormula​(Derivation other)
        Description copied from class: Derivation
        Returns true iff other and this represent the same derivation (modulo the variable they are applied to). Default implentation will just checks run-time type, but subclasses with state (e.g. SequenceInitial index) should match that, too.
        Specified by:
        isSameFormula in class Derivation
        Parameters:
        other - the Derivation to compare to
        Returns:
        true iff other and this represent the same derivation