Home
last modified time | relevance | path

Searched refs:getTextElement (Results 1 – 4 of 4) sorted by relevance

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DDifference.java484 …= 0; i < STANDARD_INDENTATION_SIZE && originalIndex >= 1 && nodeText.getTextElement(originalIndex … in applyKeptDiffElement()
495 while (index >= 0 && !nodeText.getTextElement(index).isNewline()) { in openBraceWasOnSameLine()
496 if (nodeText.getTextElement(index).isToken(LBRACE)) { in openBraceWasOnSameLine()
505 return nodeText.getTextElement(originalIndex).isToken(RBRACE) in wasSpaceBetweenBraces()
596 nodeText.getTextElement(originalIndex).isComment()) { in applyAddedDiffElement()
612 boolean nextIsNewLine = nodeText.getTextElement(originalIndex).isNewline(); in applyAddedDiffElement()
663 TextElement textElement = nodeText.getTextElement(i); in findIndexOfCorrespondingNodeTextElement()
670 TextElement previousTextElement = nodeText.getTextElement(i - 1); in findIndexOfCorrespondingNodeTextElement()
677 TextElement nextTextElement = nodeText.getTextElement(i + 1); in findIndexOfCorrespondingNodeTextElement()
DTextElementIteratorsFactory.java160 TextElement textElement = nodeText.getTextElement(index); in reverseIterator()
DNodeText.java206 TextElement getTextElement(int index) { in getTextElement() method in NodeText
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalPreservingPrinterTest.java50 assertTrue(getTextForNode(cu).getTextElement(0) instanceof ChildTextElement); in checkNodeTextCreatedForSimplestClass()
51 …cu.getClassByName("A").get(), ((ChildTextElement) getTextForNode(cu).getTextElement(0)).getChild()… in checkNodeTextCreatedForSimplestClass()
56 assertEquals("class", getTextForNode(classA).getTextElement(0).expand()); in checkNodeTextCreatedForSimplestClass()
57 assertEquals(" ", getTextForNode(classA).getTextElement(1).expand()); in checkNodeTextCreatedForSimplestClass()
58 assertEquals("A", getTextForNode(classA).getTextElement(2).expand()); in checkNodeTextCreatedForSimplestClass()
59 assertEquals(" ", getTextForNode(classA).getTextElement(3).expand()); in checkNodeTextCreatedForSimplestClass()
60 assertEquals("{", getTextForNode(classA).getTextElement(4).expand()); in checkNodeTextCreatedForSimplestClass()
61 assertEquals("}", getTextForNode(classA).getTextElement(5).expand()); in checkNodeTextCreatedForSimplestClass()
62 assertEquals("", getTextForNode(classA).getTextElement(6).expand()); in checkNodeTextCreatedForSimplestClass()
63 assertTrue(getTextForNode(classA).getTextElement(6) instanceof TokenTextElement); in checkNodeTextCreatedForSimplestClass()
[all …]