/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/ |
D | CsmElement.java | 35 public interface CsmElement { interface 39 static CsmElement child(ObservableProperty property) { in child() 43 static CsmElement attribute(ObservableProperty property) { in attribute() 47 static CsmElement sequence(CsmElement... elements) { in sequence() 51 static CsmElement string(int tokenType, String content) { in string() 55 static CsmElement string(int tokenType) { in string() 59 static CsmElement stringToken(ObservableProperty property) { in stringToken() 63 static CsmElement charToken(ObservableProperty property) { in charToken() 67 static CsmElement token(int tokenType) { in token() 71 static CsmElement token(int tokenType, CsmToken.TokenContentCalculator tokenContentCalculator) { in token() [all …]
|
D | CsmList.java | 33 public class CsmList implements CsmElement { 35 private final CsmElement separatorPost; 36 private final CsmElement separatorPre; 37 private final CsmElement preceeding; 38 private final CsmElement following; 44 public CsmElement getSeparatorPost() { in getSeparatorPost() 48 public CsmElement getSeparatorPre() { in getSeparatorPre() 52 public CsmElement getPreceeding() { in getPreceeding() 56 public CsmElement getFollowing() { in getFollowing() 60 public CsmList(ObservableProperty property, CsmElement separator) { in CsmList() [all …]
|
D | CsmConditional.java | 32 public class CsmConditional implements CsmElement { 35 private final CsmElement thenElement; 36 private final CsmElement elseElement; 53 public CsmElement getThenElement() { in getThenElement() 57 public CsmElement getElseElement() { in getElseElement() 86 …ditional(ObservableProperty property, Condition condition, CsmElement thenElement, CsmElement else… in CsmConditional() 93 …(List<ObservableProperty> properties, Condition condition, CsmElement thenElement, CsmElement else… in CsmConditional() 103 … public CsmConditional(ObservableProperty property, Condition condition, CsmElement thenElement) { in CsmConditional()
|
D | CsmSequence.java | 30 public class CsmSequence implements CsmElement { 31 private List<CsmElement> elements; 33 public CsmSequence(List<CsmElement> elements) { in CsmSequence() 43 public List<CsmElement> getElements() { in getElements()
|
D | CsmMix.java | 13 public class CsmMix implements CsmElement { 14 private List<CsmElement> elements; 16 public CsmMix(List<CsmElement> elements) { in CsmMix() 26 public List<CsmElement> getElements() { in getElements()
|
D | CsmNone.java | 27 public class CsmNone implements CsmElement {
|
D | CsmUnindent.java | 27 public class CsmUnindent implements CsmElement {
|
D | CsmIndent.java | 27 public class CsmIndent implements CsmElement {
|
D | CsmChar.java | 28 public class CsmChar implements CsmElement {
|
D | CsmString.java | 28 public class CsmString implements CsmElement {
|
D | CsmSingleReference.java | 29 public class CsmSingleReference implements CsmElement {
|
D | CsmOrphanCommentsEnding.java | 33 public class CsmOrphanCommentsEnding implements CsmElement {
|
D | CsmComment.java | 31 public class CsmComment implements CsmElement {
|
D | CsmAttribute.java | 32 public class CsmAttribute implements CsmElement {
|
D | CsmToken.java | 33 public class CsmToken implements CsmElement {
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
D | LexicalDifferenceCalculator.java | 24 final List<CsmElement> elements; 26 CalculatedSyntaxModel(List<CsmElement> elements) { in CalculatedSyntaxModel() 31 List<CsmElement> newList = new LinkedList<>(); in from() 52 static class CsmChild implements CsmElement { 91 CsmElement element = ConcreteSyntaxModel.forClass(container.getClass()); in calculateListRemovalDifference() 99 CsmElement element = ConcreteSyntaxModel.forClass(container.getClass()); in calculateListAdditionDifference() 107 CsmElement element = ConcreteSyntaxModel.forClass(container.getClass()); in calculateListReplacementDifference() 117 CsmElement element = ConcreteSyntaxModel.forClass(observedNode.getClass()); in calculatePropertyChange() 126 CalculatedSyntaxModel calculatedSyntaxModelForNode(CsmElement csm, Node node) { in calculatedSyntaxModelForNode() 127 List<CsmElement> elements = new LinkedList<>(); in calculatedSyntaxModelForNode() [all …]
|
D | DifferenceElement.java | 3 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 6 static DifferenceElement added(CsmElement element) { in added() 10 static DifferenceElement removed(CsmElement element) { in removed() 14 static DifferenceElement kept(CsmElement element) { in kept() 21 CsmElement getElement(); in getElement()
|
D | Added.java | 3 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 9 private final CsmElement element; 11 Added(CsmElement element) { in Added() 36 public CsmElement getElement() { in getElement()
|
D | DifferenceElementCalculator.java | 12 static boolean matching(CsmElement a, CsmElement b) { in matching() 49 private static boolean replacement(CsmElement a, CsmElement b) { in replacement() 81 CsmElement element = calculatedSyntaxModel.elements.get(i); in findChildrenPositions() 150 …private static int considerRemoval(CsmElement removedElement, int originalIndex, List<DifferenceEl… in considerRemoval() 181 CsmElement removedElement = original.elements.get(originalIndex); in calculateImpl() 187 CsmElement nextOriginal = original.elements.get(originalIndex); in calculateImpl() 188 CsmElement nextAfter = after.elements.get(afterIndex); in calculateImpl()
|
D | Removed.java | 5 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 9 private final CsmElement element; 11 Removed(CsmElement element) { in Removed() 36 public CsmElement getElement() { in getElement()
|
D | Kept.java | 5 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 11 private final CsmElement element; 13 Kept(CsmElement element) { in Kept() 38 public CsmElement getElement() { in getElement()
|
D | Difference.java | 11 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 226 List<CsmElement> elementsToBeAddedAtTheEnd = new LinkedList<>(); in extractReshuffledDiffElements() 227 List<CsmElement> nextOrderElements = elementsFromNextOrder.getElements(); in extractReshuffledDiffElements() 229 … Map<Integer, List<CsmElement>> elementsToAddBeforeGivenOriginalCSMElement = new HashMap<>(); in extractReshuffledDiffElements() 270 …for (CsmElement elementToAdd : elementsToAddBeforeGivenOriginalCSMElement.get(indexOfOriginalCSMEl… in extractReshuffledDiffElements() 275 …CsmElement originalCSMElement = elementsFromPreviousOrder.getElements().get(indexOfOriginalCSMElem… in extractReshuffledDiffElements() 289 for (CsmElement elementToAdd : elementsToBeAddedAtTheEnd) { in extractReshuffledDiffElements() 624 List<CsmElement> nextOrderElements = elementsFromNextOrder.getElements(); in getCorrespondanceBetweenNextOrderAndPreviousOrder() 625 List<CsmElement> previousOrderElements = elementsFromPreviousOrder.getElements(); in getCorrespondanceBetweenNextOrderAndPreviousOrder() 630 CsmElement ne = nextOrderElements.get(ni); in getCorrespondanceBetweenNextOrderAndPreviousOrder() [all …]
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/ |
D | LexicalDifferenceCalculatorTest.java | 19 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 39 CsmElement element = ConcreteSyntaxModel.forClass(cu.getClass()); in compilationUnitExampleOriginal() 49 CsmElement element = ConcreteSyntaxModel.forClass(cu.getClass()); in compilationUnitExampleWithPackageSet() 62 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationModifiersExampleOriginal() 93 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationModifiersExampleModified() 126 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationNameExampleModified() 159 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationJavadocExampleOriginal() 192 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationJavadocExampleAddingJavadoc() 253 …assertEquals(CsmElement.token(GeneratedJavaParserConstants.LBRACE), calculatedSyntaxModel.elements… in csmModelAfterAddingStatementToEmptyBlock() 254 assertEquals(CsmElement.newline(), calculatedSyntaxModel.elements.get(index++)); in csmModelAfterAddingStatementToEmptyBlock() [all …]
|
D | DifferenceElementCalculatorTest.java | 17 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 87 CsmElement element = ConcreteSyntaxModel.forClass(cu.getClass()); in compilationUnitExampleWithPackageSetDiff() 102 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationExampleWithModifierAdded() 137 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationExampleWithNameChanged() 173 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationExampleWithJavadocAdded() 209 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationExampleWithJavadocRemoved() 244 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationExampleWithModifierRemoved()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/ |
D | ConcreteSyntaxModel.java | 35 import com.github.javaparser.printer.concretesyntaxmodel.CsmElement; 44 import static com.github.javaparser.printer.concretesyntaxmodel.CsmElement.*; 52 private static final Map<Class, CsmElement> concreteSyntaxModelByClass = new HashMap<>(); 55 private static CsmElement modifiers() { in modifiers() 62 private static CsmElement mix(CsmElement... elements) { in mix() 66 private static CsmElement memberAnnotations() { in memberAnnotations() 70 private static CsmElement annotations() { in annotations() 74 private static CsmElement typeParameters() { in typeParameters() 79 private static CsmElement typeArguments() { in typeArguments() 955 public static CsmElement forClass(Class<? extends Node> nodeClazz) { in forClass()
|