Class ExampleCriterions
java.lang.Object
org.variantsync.diffdetective.examplesearch.ExampleCriterions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final <L extends Label>
ExplainedFilter<VariationDiff<L>>private static boolean
diffIsNotLongerThan
(VariationDiff<?> t, int maxLines) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> private static int
getNumberOfLinesIn
(String text) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> static final <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> HAS_ELSE()
static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> private static boolean
hasAnnotatedMacros
(VariationDiff<?> variationDiff) private static boolean
hasAtLeastOneComplexFormulaBeforeTheEdit
(VariationDiff<?> variationDiff) private static boolean
isComplexFormula
(org.prop4j.Node formula) private static boolean
private static boolean
isNestedAt
(DiffNode<?> n, Time t) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> MAX_LINE_COUNT
(int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> MIN_ANNOTATIONS
(int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> MIN_CHANGES_TO_PCS
(int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> MIN_FEATURES
(int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> MIN_NODES_OF_TYPE
(NodeType nt, int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> MIN_PARALLEL_EDITS
(int n)
-
Field Details
-
DefaultExamplesDirectory
-
DefaultMaxDiffLineCount
public static final int DefaultMaxDiffLineCount- See Also:
-
-
Constructor Details
-
ExampleCriterions
public ExampleCriterions()
-
-
Method Details
-
HAS_A_COMPLEX_FORMULA_BEFORE_THE_EDIT
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> HAS_A_COMPLEX_FORMULA_BEFORE_THE_EDIT() -
DOES_NOT_CONTAIN_ANNOTATED_MACROS
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> DOES_NOT_CONTAIN_ANNOTATED_MACROS() -
HAS_EDITED_ARTIFACTS
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> HAS_EDITED_ARTIFACTS() -
HAS_ADDITIONS
-
HAS_DELETIONS
-
HAS_NESTING_BEFORE_EDIT
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> HAS_NESTING_BEFORE_EDIT() -
HAS_NESTING
-
HAS_ELSE
-
MAX_LINE_COUNT
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> MAX_LINE_COUNT(int n) -
MIN_NODES_OF_TYPE
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> MIN_NODES_OF_TYPE(NodeType nt, int n) -
MIN_ANNOTATIONS
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> MIN_ANNOTATIONS(int n) -
MIN_FEATURES
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> MIN_FEATURES(int n) -
MIN_PARALLEL_EDITS
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> MIN_PARALLEL_EDITS(int n) -
MIN_CHANGES_TO_PCS
public static <L extends Label> TaggedPredicate<String,VariationDiff<? extends L>> MIN_CHANGES_TO_PCS(int n) -
DefaultExampleConditions
-
diffIsNotLongerThan
-
hasAnnotatedMacros
-
isNestedAt
-
isNested
-
hasAtLeastOneComplexFormulaBeforeTheEdit
-
getNumberOfLinesIn
-
isComplexFormula
private static boolean isComplexFormula(org.prop4j.Node formula)
-