Home
last modified time | relevance | path

Searched refs:findCompilationUnit (Results 1 – 5 of 5) sorted by relevance

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/
DMethodDeclarationTransformationsTest.java97 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingDuplicateJavaDocComment()
138 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in replacingDuplicateJavaDocComment()
183 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingDuplicateComment()
239 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingModifiersWithExistingAnnotations()
273 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in replacingModifiersWithExistingAnnotations()
337 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in addingToExistingAnnotations()
358 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in addingAnnotationsNoModifiers()
379 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in replacingAnnotations()
409 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingAnnotations()
430 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingAnnotationsWithSpaces()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/
DNodeTest.java322 assertTrue(comment.findCompilationUnit().isPresent()); in findCompilationUnitOfCommentNode()
337 assertTrue(comment.findCompilationUnit().isPresent()); in findCompilationUnitOfOrphanCommentNode()
366 void findCompilationUnit() { in findCompilationUnit() method in NodeTest
369 assertEquals(cu, x.findCompilationUnit().get()); in findCompilationUnit()
382 assertFalse(x.findCompilationUnit().isPresent()); in cantFindCompilationUnit()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/
DJavaParserTypeSolverTest.java32 …assertEquals("JavaParserTypeSolver.java", wrappedNode.findCompilationUnit().get().getStorage().get… in containsLocationInStorage()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DTypeDeclaration.java202 …return findCompilationUnit().map(cu -> cu.getPackageDeclaration().map(pd -> pd.getNameAsString()).… in getFullyQualifiedName()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/
DNode.java702 public Optional<CompilationUnit> findCompilationUnit() { in findCompilationUnit() method in Node
711 return findCompilationUnit().map(cu -> { in getSymbolResolver()