HomeSort by relevance Sort by last modified time
    Searched refs:getTextElement (Results 1 - 4 of 4) sorted by null

  /external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
TextElementIteratorsFactory.java 160 TextElement textElement = nodeText.getTextElement(index);
NodeText.java 204 TextElement getTextElement(int index) {
Difference.java 628 for (int i = 0; i < STANDARD_INDENTATION_SIZE && nodeTextIndex >= 1 && nodeText.getTextElement(nodeTextIndex - 1).isSpaceOrTab(); i++) {
    [all...]
  /external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
LexicalPreservingPrinterTest.java 42 assertEquals(true, getTextForNode(cu).getTextElement(0) instanceof ChildTextElement);
43 assertEquals(cu.getClassByName("A").get(), ((ChildTextElement)getTextForNode(cu).getTextElement(0)).getChild());
48 assertEquals("class", getTextForNode(classA).getTextElement(0).expand());
49 assertEquals(" ", getTextForNode(classA).getTextElement(1).expand());
50 assertEquals("A", getTextForNode(classA).getTextElement(2).expand());
51 assertEquals(" ", getTextForNode(classA).getTextElement(3).expand());
52 assertEquals("{", getTextForNode(classA).getTextElement(4).expand());
53 assertEquals("}", getTextForNode(classA).getTextElement(5).expand());
54 assertEquals("", getTextForNode(classA).getTextElement(6).expand());
55 assertEquals(true, getTextForNode(classA).getTextElement(6) instanceof TokenTextElement)
    [all...]

Completed in 1054 milliseconds