Home
last modified time | relevance | path

Searched refs:parserConfiguration (Results 1 – 19 of 19) sorted by relevance

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/
DSourceZip.java50 private ParserConfiguration parserConfiguration; field in SourceZip
73 this.parserConfiguration = configuration; in SourceZip()
102 JavaParser javaParser = new JavaParser(parserConfiguration); in parse()
141 return parserConfiguration; in getParserConfiguration()
144 public SourceZip setParserConfiguration(ParserConfiguration parserConfiguration) { in setParserConfiguration() argument
145 assertNotNull(parserConfiguration); in setParserConfiguration()
146 this.parserConfiguration = parserConfiguration; in setParserConfiguration()
DProjectRoot.java23 private final ParserConfiguration parserConfiguration; field in ProjectRoot
29 public ProjectRoot(Path root, ParserConfiguration parserConfiguration) { in ProjectRoot() argument
31 this.parserConfiguration = parserConfiguration; in ProjectRoot()
43 cache.put(path, new SourceRoot(path).setParserConfiguration(parserConfiguration)); in addSourceRoot()
DParserCollectionStrategy.java21 private final ParserConfiguration parserConfiguration; field in ParserCollectionStrategy
27 public ParserCollectionStrategy(ParserConfiguration parserConfiguration) { in ParserCollectionStrategy() argument
28 this.parserConfiguration = parserConfiguration; in ParserCollectionStrategy()
33 ProjectRoot projectRoot = new ProjectRoot(path, parserConfiguration); in collect()
DSourceRoot.java60 private ParserConfiguration parserConfiguration = new ParserConfiguration(); field in SourceRoot
81 public SourceRoot(Path root, ParserConfiguration parserConfiguration) { in SourceRoot() argument
83 setParserConfiguration(parserConfiguration); in SourceRoot()
120 return tryToParse(startPackage, filename, parserConfiguration); in tryToParse()
198 parserConfiguration); in tryToParseParallelized()
285 parse(startPackage, filename, parserConfiguration, callback); in parse()
321 parse(startPackage, parserConfiguration, callback); in parse()
434 return save(cu, path, parserConfiguration.getCharacterEncoding()); in save()
474 return saveAll(root, parserConfiguration.getCharacterEncoding()); in saveAll()
518 return parserConfiguration; in getParserConfiguration()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DJavaParserAPIIntegrationTest.java60 ParserConfiguration parserConfiguration = new ParserConfiguration(); in annotationMemberDeclarationResolve() local
61 parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); in annotationMemberDeclarationResolve()
62 …CompilationUnit cu = new JavaParser(parserConfiguration).parse(ParseStart.COMPILATION_UNIT, provid… in annotationMemberDeclarationResolve()
88 ParserConfiguration parserConfiguration = new ParserConfiguration(); in parseWithSymbolResolution() local
89 parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); in parseWithSymbolResolution()
90 …return new JavaParser(parserConfiguration).parse(ParseStart.COMPILATION_UNIT, provider(f)).getResu… in parseWithSymbolResolution()
148 ParserConfiguration parserConfiguration = new ParserConfiguration(); in parameterDeclarationResolve() local
149 parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); in parameterDeclarationResolve()
150 …CompilationUnit cu = new JavaParser(parserConfiguration).parse(ParseStart.COMPILATION_UNIT, provid… in parameterDeclarationResolve()
DIssue1491Test.java36 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in verifyIssue1491SolvingClassInSameFile() local
37 StaticJavaParser.setConfiguration(parserConfiguration); in verifyIssue1491SolvingClassInSameFile()
60 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in verifyIssue1491ResolvingStaticMethodCalls() local
61 StaticJavaParser.setConfiguration(parserConfiguration); in verifyIssue1491ResolvingStaticMethodCalls()
84 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in verifyIssue1491Combined() local
85 StaticJavaParser.setConfiguration(parserConfiguration); in verifyIssue1491Combined()
DSolveMethodDeclaredInEnumTest.java51 ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver( in methodDeclaredInEnum_enumFromJar() local
53 JavaParser javaParser = new JavaParser(parserConfiguration); in methodDeclaredInEnum_enumFromJar()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DEnumLiteralsInAnnotatedClassTest.java35 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedSamePackage() local
36 JavaParser parser = new JavaParser(parserConfiguration); in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedSamePackage()
58 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in resolveFieldOfEnumAsInternalClassOfClassQualifiedSamePackage() local
59 JavaParser parser = new JavaParser(parserConfiguration); in resolveFieldOfEnumAsInternalClassOfClassQualifiedSamePackage()
81 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedDifferentPackage() local
82 JavaParser parser = new JavaParser(parserConfiguration); in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedDifferentPackage()
104 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in resolveFieldOfEnumAsInternalClassOfClassQualifiedDifferentPackage() local
105 JavaParser parser = new JavaParser(parserConfiguration); in resolveFieldOfEnumAsInternalClassOfClassQualifiedDifferentPackage()
DInternalClassInInterfaceTest.java35 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedSamePackage() local
36 JavaParser parser = new JavaParser(parserConfiguration); in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedSamePackage()
58 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedSamePackage() local
59 JavaParser parser = new JavaParser(parserConfiguration); in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedSamePackage()
81 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedDifferentPackage() local
82 JavaParser parser = new JavaParser(parserConfiguration); in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedDifferentPackage()
104 …ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver(new JavaSymb… in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedDifferentPackage() local
105 JavaParser parser = new JavaParser(parserConfiguration); in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedDifferentPackage()
DArrayExprTest.java40 ParserConfiguration parserConfiguration = new ParserConfiguration(); in arrayLengthValueDeclaration() local
41 parserConfiguration.setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolver())); in arrayLengthValueDeclaration()
42 …CompilationUnit cu = new JavaParser(parserConfiguration).parse(ParseStart.COMPILATION_UNIT, new St… in arrayLengthValueDeclaration()
DJavaParserFacadeResolutionTest.java142 ParserConfiguration parserConfiguration = new ParserConfiguration(); in parseWithTypeSolver() local
143 parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); in parseWithTypeSolver()
144 JavaParser javaParser = new JavaParser(parserConfiguration); in parseWithTypeSolver()
DContextTest.java586 ParserConfiguration parserConfiguration = new ParserConfiguration(); in parse() local
587 parserConfiguration.setLanguageLevel(ParserConfiguration.LanguageLevel.JAVA_10); in parse()
588 …ParseResult<PS> parseResult = new JavaParser(parserConfiguration).parse(parseStart, new StringProv… in parse()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/
DSymbolSolverCollectionStrategy.java26 private final ParserConfiguration parserConfiguration; field in SymbolSolverCollectionStrategy
33 public SymbolSolverCollectionStrategy(ParserConfiguration parserConfiguration) { in SymbolSolverCollectionStrategy() argument
34 …this.parserConfiguration = parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); in SymbolSolverCollectionStrategy()
39 ProjectRoot projectRoot = new ProjectRoot(path, parserConfiguration); in collect()
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/
DCoreGenerator.java22 private static final ParserConfiguration parserConfiguration = new ParserConfiguration() field in CoreGenerator
35 final SourceRoot sourceRoot = new SourceRoot(root, parserConfiguration) in main()
38 StaticJavaParser.setConfiguration(parserConfiguration); in main()
41 …nal SourceRoot generatedJavaCcSourceRoot = new SourceRoot(generatedJavaCcRoot, parserConfiguration) in main()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/
DJavaParserTypeSolver.java70 public JavaParserTypeSolver(File srcDir, ParserConfiguration parserConfiguration) { in JavaParserTypeSolver() argument
71 this(srcDir.toPath(), parserConfiguration); in JavaParserTypeSolver()
74 public JavaParserTypeSolver(String srcDir, ParserConfiguration parserConfiguration) { in JavaParserTypeSolver() argument
75 this(new File(srcDir), parserConfiguration); in JavaParserTypeSolver()
78 public JavaParserTypeSolver(Path srcDir, ParserConfiguration parserConfiguration) { in JavaParserTypeSolver() argument
83 javaParser = new JavaParser(parserConfiguration); in JavaParserTypeSolver()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/
DAbstractNameLogicTest.java34 ParserConfiguration parserConfiguration = new ParserConfiguration(); in parse() local
35 parserConfiguration.setLanguageLevel(ParserConfiguration.LanguageLevel.JAVA_10); in parse()
37 parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver.get())); in parse()
39 …ParseResult<N> parseResult = new JavaParser(parserConfiguration).parse(parseStart, new StringProvi… in parse()
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DMetaModelGenerator.java162 final ParserConfiguration parserConfiguration = new ParserConfiguration() in main() local
165 final SourceRoot sourceRoot = new SourceRoot(root, parserConfiguration); in main()
167 StaticJavaParser.setConfiguration(parserConfiguration); in main()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeTest.java675 ParserConfiguration parserConfiguration = new ParserConfiguration(); in testDeclaredFields() local
676 parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); in testDeclaredFields()
678 CompilationUnit cu = new JavaParser(parserConfiguration) in testDeclaredFields()
701 ParserConfiguration parserConfiguration = new ParserConfiguration(); in testGetAllFieldsVisibleToInheritors() local
702 parserConfiguration.setSymbolResolver(new JavaSymbolSolver(typeSolver)); in testGetAllFieldsVisibleToInheritors()
704 CompilationUnit cu = new JavaParser(parserConfiguration) in testGetAllFieldsVisibleToInheritors()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserEnumDeclarationTest.java879 ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver( in testHasDirectlyAnnotationNegative() local
881 CompilationUnit cu = new JavaParser(parserConfiguration).parse(ParseStart.COMPILATION_UNIT, in testHasDirectlyAnnotationNegative()
895 ParserConfiguration parserConfiguration = new ParserConfiguration().setSymbolResolver( in testHasDirectlyAnnotationPositive() local
897 CompilationUnit cu = new JavaParser(parserConfiguration).parse(ParseStart.COMPILATION_UNIT, in testHasDirectlyAnnotationPositive()