Home
last modified time | relevance | path

Searched refs:getImports (Results 1 – 25 of 55) sorted by relevance

123

/external/auto/value/src/test/java/com/google/auto/value/processor/
DPropertyAnnotationsTest.java253 private ImmutableSet<String> getImports(Class<?>... classes) { in getImports() method in PropertyAnnotationsTest
308 getImports(PropertyAnnotationsTest.class), in testNumberValueAnnotation()
316 getImports(PropertyAnnotationsTest.class), in testByteValueAnnotation()
324 getImports(PropertyAnnotationsTest.class), in testDecimalValueAnnotation()
332 getImports(PropertyAnnotationsTest.class), in testOtherValuesAnnotation()
342 getImports(PropertyAnnotationsTest.class), in testClassAnnotation()
350 getImports(PropertyAnnotationsTest.class), in testEnumAnnotation()
362 getImports(PropertyAnnotationsTest.class), in testEmptyAnnotationAnnotation()
372 getImports(PropertyAnnotationsTest.class), in testValuedAnnotationAnnotation()
384 getImports(PropertyAnnotationsTest.class), in testNumberArrayAnnotation()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/builders/
DCompilationUnitBuildersTest.java48 assertEquals(2, cu.getImports().size()); in testAddImport()
50 assertEquals(3, cu.getImports().size()); in testAddImport()
59 assertEquals(0, cu.getImports().size()); in typesInTheJavaLangPackageDoNotNeedExplicitImports()
65 assertEquals(1, cu.getImports().size()); in typesInSubPackagesOfTheJavaLangPackageRequireExplicitImports()
73 assertEquals(1, cu.getImports().size()); in doNotAddDuplicateImportsByClass()
80 assertEquals(1, cu.getImports().size()); in doNotAddDuplicateImportsByString()
87 assertEquals(1, cu.getImports().size()); in doNotAddDuplicateImportsByStringAndFlags()
94 assertEquals(1, cu.getImports().size()); in doNotAddDuplicateImportsByImportDeclaration()
103 assertEquals(2, cu.getImports().size()); in testAddImportArrayTypes()
DClassOrInterfaceDeclarationBuildersTest.java53 assertEquals(1, cu.getImports().size()); in testAddExtends()
64 assertEquals(1, cu.getImports().size()); in testAddImplements()
DEnumDeclarationBuildersTest.java40 assertEquals(1, cu.getImports().size()); in testAddImplements()
DNodeWithParametersBuildersTest.java43 assertEquals(1, cu.getImports().size()); in testAddParameter()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DCompilationUnitContext.java86 if (wrappedNode.getImports() != null) { in solveSymbol()
87 for (ImportDeclaration importDecl : wrappedNode.getImports()) { in solveSymbol()
174 if (wrappedNode.getImports() != null) { in solveType()
181 for (ImportDeclaration importDecl : wrappedNode.getImports()) { in solveType()
205 for (ImportDeclaration importDecl : wrappedNode.getImports()) { in solveType()
262 for (ImportDeclaration importDecl : wrappedNode.getImports()) { in solveMethod()
304 for (ImportDeclaration importDeclaration : wrappedNode.getImports()) { in fieldsExposedToChild()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DCompilationUnitContext.java81 if (wrappedNode.getImports() != null) { in solveSymbol()
82 for (ImportDeclaration importDecl : wrappedNode.getImports()) { in solveSymbol()
126 if (wrappedNode.getImports() != null) { in solveType()
133 for (ImportDeclaration importDecl : wrappedNode.getImports()) { in solveType()
155 for (ImportDeclaration importDecl : wrappedNode.getImports()) { in solveType()
228 for (ImportDeclaration importDecl : wrappedNode.getImports()) { in solveMethod()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_CompilationUnitContext.txt9 Line 81) wrappedNode.getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
10 Line 82) wrappedNode.getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
35 Line 126) wrappedNode.getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
38 Line 133) wrappedNode.getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
52 Line 155) wrappedNode.getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
96 Line 228) wrappedNode.getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_CompilationUnit.txt32 …Line 251) getImports().stream().anyMatch(i -> i.getName().toString().equals(name)) ==> java.util.s…
33 Line 251) getImports().stream() ==> java.util.Collection.stream()
34 Line 251) getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
39 Line 256) getImports().add(importDeclaration) ==> java.util.List.add(E)
40 Line 256) getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
Dcom_github_javaparser_ast_visitor_EqualsVisitor.txt22 …Line 179) nodesEquals(n1.getImports(), n2.getImports()) ==> com.github.javaparser.ast.visitor.Equa…
23 Line 179) n1.getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
24 Line 179) n2.getImports() ==> com.github.javaparser.ast.CompilationUnit.getImports()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/
DCompilationUnit.java124 public List<ImportDeclaration> getImports() { in getImports() method in CompilationUnit
251 if (getImports().stream().anyMatch(i -> i.getName().toString().equals(name))) in addImport()
256 getImports().add(importDeclaration); in addImport()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/
DCompilationUnit.java156 public NodeList<ImportDeclaration> getImports() { in getImports() method in CompilationUnit
161 return getImports().get(i); in getImport()
221 getImports().set(i, imports); in setImport()
226 … if (getImports().stream().noneMatch(im -> im.toString().equals(importDeclaration.toString()))) { in addImport()
227 getImports().add(importDeclaration); in addImport()
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/
DGenericListVisitorAdapterGenerator.java51 compilationUnit.getImports().stream().noneMatch( in generateVisitMethodBody()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/
DCompilationUnit.java107 public List<ImportDeclaration> getImports() { in getImports() method in CompilationUnit
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/generator/
DShadowProviderGenerator.java63 for (String name : model.getImports()) { in generate()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DRemoveUnusedImports.java243 for (JCImport importTree : unit.getImports()) { in buildReplacements()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DImplementsValidator.java259 …ends ImportTree> importLines = Trees.instance(env).getPath(elem).getCompilationUnit().getImports(); in captureJavadoc()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/
DRobolectricModel.java264 public Set<String> getImports() { in getImports() method in RobolectricModel
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/visitor/
DVoidVisitorAdapter.java253 if (n.getImports() != null) { in visit()
254 for (final ImportDeclaration i : n.getImports()) { in visit()
DGenericVisitorAdapter.java435 if (n.getImports() != null) { in visit()
436 for (final ImportDeclaration i : n.getImports()) { in visit()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/visitor/
DVoidVisitorAdapter.java235 if (n.getImports() != null) { in visit()
236 for (final ImportDeclaration i : n.getImports()) { in visit()
DEqualsVisitor.java179 if (!nodesEquals(n1.getImports(), n2.getImports())) { in visit()
DGenericVisitorAdapter.java391 if (n.getImports() != null) { in visit()
392 for (final ImportDeclaration i : n.getImports()) { in visit()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/
DNoCommentEqualsVisitor.java94 if (!nodesEquals(n.getImports(), n2.getImports())) in visit()
DEqualsVisitor.java135 if (!nodesEquals(n.getImports(), n2.getImports())) in visit()

123