Searched refs:DifferenceElement (Results 1 – 11 of 11) sorted by relevance
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/ |
D | DifferenceElementCalculatorTest.java | 33 import static com.github.javaparser.printer.lexicalpreservation.DifferenceElement.*; 42 List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(a, b); in calculateDifferenceEmpty() 57 List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(a, b); in calculateDifferenceAIsEmpty() 76 List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(a, b); in calculateDifferenceBIsEmpty() 91 …List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(csmOriginal, cs… in compilationUnitExampleWithPackageSetDiff() 105 …List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(csmOriginal, cs… in annotationDeclarationExampleWithModifierAdded() 142 …List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(csmOriginal, cs… in annotationDeclarationExampleWithNameChanged() 177 …List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(csmOriginal, cs… in annotationDeclarationExampleWithJavadocAdded() 212 …List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(csmOriginal, cs… in annotationDeclarationExampleWithJavadocRemoved() 247 …List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(csmOriginal, cs… in annotationDeclarationExampleWithModifierRemoved() [all …]
|
D | LexicalDifferenceCalculatorTest.java | 276 List<DifferenceElement> differenceElements = ldc.calculateListAdditionDifference( in differenceAfterddingStatementToEmptyBlock() 282 …assertEquals(DifferenceElement.kept(CsmElement.token(GeneratedJavaParserConstants.LBRACE)), differ… in differenceAfterddingStatementToEmptyBlock() 283 assertEquals(DifferenceElement.kept(CsmElement.newline()), differenceElements.get(index++)); in differenceAfterddingStatementToEmptyBlock() 284 assertEquals(DifferenceElement.added(CsmElement.indent()), differenceElements.get(index++)); in differenceAfterddingStatementToEmptyBlock() 286 … assertEquals(DifferenceElement.added(CsmElement.newline()), differenceElements.get(index++)); in differenceAfterddingStatementToEmptyBlock() 287 … assertEquals(DifferenceElement.added(CsmElement.unindent()), differenceElements.get(index++)); in differenceAfterddingStatementToEmptyBlock() 288 …assertEquals(DifferenceElement.kept(CsmElement.token(GeneratedJavaParserConstants.RBRACE)), differ… in differenceAfterddingStatementToEmptyBlock() 292 private boolean isAddedChild(DifferenceElement element, Class<? extends Node> childClass) { in isAddedChild()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
D | DifferenceElement.java | 5 public interface DifferenceElement { interface 6 static DifferenceElement added(CsmElement element) { in added() 10 static DifferenceElement removed(CsmElement element) { in removed() 14 static DifferenceElement kept(CsmElement element) { in kept()
|
D | DifferenceElementCalculator.java | 93 …static List<DifferenceElement> calculate(LexicalDifferenceCalculator.CalculatedSyntaxModel origina… in calculate() 113 List<DifferenceElement> elements = new LinkedList<>(); in calculate() 136 … private static void considerRemoval(NodeText nodeTextForChild, List<DifferenceElement> elements) { in considerRemoval() 150 …t considerRemoval(CsmElement removedElement, int originalIndex, List<DifferenceElement> elements) { in considerRemoval() 169 …private static List<DifferenceElement> calculateImpl(LexicalDifferenceCalculator.CalculatedSyntaxM… in calculateImpl() 171 List<DifferenceElement> elements = new LinkedList<>(); in calculateImpl() 209 …List<DifferenceElement> addingElements = calculate(original.from(originalIndex), after.from(afterI… in calculateImpl() 210 List<DifferenceElement> removingElements = null; in calculateImpl() 229 private static long cost(List<DifferenceElement> elements) { in cost() 238 static void removeIndentationElements(List<DifferenceElement> elements) { in removeIndentationElements()
|
D | Difference.java | 31 private final List<DifferenceElement> diffElements; 39 Difference(List<DifferenceElement> diffElements, NodeText nodeText, Node node) { in Difference() 132 DifferenceElement diffElement = diffElements.get(diffIndex); in apply() 174 DifferenceElement diffElement = diffElements.get(diffIndex); in applyLeftOverDiffElements() 200 private void extractReshuffledDiffElements(List<DifferenceElement> diffElements) { in extractReshuffledDiffElements() 202 DifferenceElement diffElement = diffElements.get(index); in extractReshuffledDiffElements() 332 DifferenceElement diffElement = diffElements.get(i); in groupConsecutiveRemovedElements() 646 private boolean isFollowedByUnindent(List<DifferenceElement> diffElements, int diffIndex) { in isFollowedByUnindent()
|
D | LexicalDifferenceCalculator.java | 89 …List<DifferenceElement> calculateListRemovalDifference(ObservableProperty observableProperty, Node… in calculateListRemovalDifference() 97 …List<DifferenceElement> calculateListAdditionDifference(ObservableProperty observableProperty, Nod… in calculateListAdditionDifference() 105 …List<DifferenceElement> calculateListReplacementDifference(ObservableProperty observableProperty, … in calculateListReplacementDifference() 120 …List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(original, after… in calculatePropertyChange()
|
D | Reshuffled.java | 9 public class Reshuffled implements DifferenceElement {
|
D | Added.java | 8 public class Added implements DifferenceElement {
|
D | Removed.java | 8 public class Removed implements DifferenceElement {
|
D | Kept.java | 10 public class Kept implements DifferenceElement {
|
D | LexicalPreservingPrinter.java | 264 final List<DifferenceElement> differenceElements; in concreteListChange() 280 …List<DifferenceElement> differenceElements = LEXICAL_DIFFERENCE_CALCULATOR.calculateListReplacemen… in concreteListReplacement()
|