Home
last modified time | relevance | path

Searched refs:addImport (Results 1 – 25 of 27) sorted by relevance

12

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/builders/
DCompilationUnitBuildersTest.java45 cu.addImport(Map.class); in testAddImport()
46 cu.addImport(Map.class); in testAddImport()
47 cu.addImport(List.class); in testAddImport()
49 cu.addImport("myImport"); in testAddImport()
58 cu.addImport(String.class); in typesInTheJavaLangPackageDoNotNeedExplicitImports()
64 cu.addImport(ElementType.class); in typesInSubPackagesOfTheJavaLangPackageRequireExplicitImports()
71 cu.addImport(Map.class); in doNotAddDuplicateImportsByClass()
72 cu.addImport(Map.class); in doNotAddDuplicateImportsByClass()
78 cu.addImport(Map.class); in doNotAddDuplicateImportsByString()
79 cu.addImport("java.util.Map"); in doNotAddDuplicateImportsByString()
[all …]
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/
DTypeCastingGenerator.java68 baseCu.addImport("com.github.javaparser.utils.CodeGenerationUtils.f", true, false); in generateAsType()
72 baseCu.addImport(Optional.class); in generateToType()
73 nodeCu.addImport(Optional.class); in generateToType()
86 baseCu.addImport(Consumer.class); in generateIfType()
87 nodeCu.addImport(Consumer.class); in generateIfType()
DAcceptGenerator.java29 nodeCu.addImport(GenericVisitor.class); in generateNode()
30 nodeCu.addImport(VoidVisitor.class); in generateNode()
DGetMetaModelGenerator.java27 nodeCu.addImport(nodeMetaModel.getClass().getName()); in generateNode()
28 nodeCu.addImport(JavaParserMetaModel.class); in generateNode()
DCloneGenerator.java21 nodeCu.addImport(CloneVisitor.class); in generateNode()
DMainConstructorGenerator.java52 nodeCu.addImport(TokenRange.class); in generateNode()
DReplaceMethodGenerator.java24 nodeCu.addImport(Node.class); in generateNode()
DRemoveMethodGenerator.java26 nodeCu.addImport(Node.class); in generateNode()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/
DCompilationUnit.java221 public CompilationUnit addImport(String name) { in addImport() method in CompilationUnit
222 return addImport(name, false, false); in addImport()
232 public CompilationUnit addImport(Class<?> clazz) { in addImport() method in CompilationUnit
237 return addImport(clazz.getComponentType().getName()); in addImport()
238 return addImport(clazz.getName()); in addImport()
250 public CompilationUnit addImport(String name, boolean isStatic, boolean isAsterisk) { in addImport() method in CompilationUnit
DNode.java338 parentNode.addImport(clazz); in tryAddImportToParentCompilationUnit()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/
DCompilationUnit.java225 public CompilationUnit addImport(ImportDeclaration importDeclaration) { in addImport() method in CompilationUnit
301 public CompilationUnit addImport(String name) { in addImport() method in CompilationUnit
302 return addImport(name, false, false); in addImport()
313 public CompilationUnit addImport(Class<?> clazz) { in addImport() method in CompilationUnit
315 return addImport(clazz.getComponentType()); in addImport()
320 return addImport(clazz.getName().replace("$", ".")); in addImport()
323 return addImport(clazz.getName()); in addImport()
335 public CompilationUnit addImport(String name, boolean isStatic, boolean isAsterisk) { in addImport() method in CompilationUnit
345 return addImport(parseImport(i.toString())); in addImport()
DNode.java408 findAncestor(CompilationUnit.class).ifPresent(p -> p.addImport(clazz)); in tryAddImportToParentCompilationUnit()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_CompilationUnit.txt17 …Line 222) addImport(name, false, false) ==> com.github.javaparser.ast.CompilationUnit.addImport(ja…
27 …Line 237) addImport(clazz.getComponentType().getName()) ==> com.github.javaparser.ast.CompilationU…
30 …Line 238) addImport(clazz.getName()) ==> com.github.javaparser.ast.CompilationUnit.addImport(java.…
Dcom_github_javaparser_ast_Node.txt38 …Line 338) parentNode.addImport(clazz) ==> com.github.javaparser.ast.CompilationUnit.addImport(java…
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DNodeMetaModelGenerator.java48 classMetaModelJavaFile.addImport("java.util.Optional"); in generate()
73 classMetaModelJavaFile.addImport(Node.class); in generate()
/external/dagger2/java/dagger/errorprone/
DAndroidSupportInjectionModuleMigrator.java63 .addImport("dagger.android.AndroidInjectionModule") in matchMemberSelect()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/CodeView/
DDebugCrossImpSubsection.h80 void addImport(StringRef Module, uint32_t ImportId);
/external/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
DDebugCrossImpSubsection.h80 void addImport(StringRef Module, uint32_t ImportId);
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/
DGenericListVisitorAdapterGenerator.java54 ).forEach(compilationUnit::addImport); in generateVisitMethodBody()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DDebugCrossImpSubsection.cpp54 void DebugCrossModuleImportsSubsection::addImport(StringRef Module, in addImport() function in DebugCrossModuleImportsSubsection
/external/llvm-project/llvm/lib/DebugInfo/CodeView/
DDebugCrossImpSubsection.cpp54 void DebugCrossModuleImportsSubsection::addImport(StringRef Module, in addImport() function in DebugCrossModuleImportsSubsection
/external/llvm-project/lld/wasm/
DSyntheticSections.h104 void addImport(Symbol *sym);
DSyntheticSections.cpp113 void ImportSection::addImport(Symbol *sym) { in addImport() function in lld::wasm::ImportSection
DWriter.cpp584 out.importSec->addImport(sym); in calculateImports()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DCodeViewYAMLDebugSections.cpp483 Result->addImport(M.ModuleName, Id); in toCodeViewSubsection()

12