/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ |
D | VisitorListTest.java | 34 import com.github.javaparser.ast.CompilationUnit; 42 List<CompilationUnit> list = new ArrayList<>(); in visitorAddAll() 45 VisitorList<CompilationUnit> vList = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorAddAll() 54 List<CompilationUnit> list = new ArrayList<>(); in visitorAddAllAtIndex() 57 VisitorList<CompilationUnit> vList = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorAddAllAtIndex() 69 CompilationUnit x1 = parse("class X{}"); in visitorListContains() 70 VisitorList<CompilationUnit> list = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorListContains() 78 List<CompilationUnit> list = new ArrayList<>(); in visitorListContainsAll() 81 VisitorList<CompilationUnit> vList = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorListContainsAll() 89 VisitorList<CompilationUnit> list = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorListIterator() [all …]
|
D | VisitorSetTest.java | 36 import com.github.javaparser.ast.CompilationUnit; 44 Set<CompilationUnit> set = new HashSet<>(); in normalEqualsDoesDeepCompare() 52 Set<CompilationUnit> set = new VisitorSet<>(new ObjectIdentityHashCodeVisitor(), in objectIdentityEqualsDoesShallowCompare() 61 CompilationUnit x1 = parse("class X{}"); in visitorSetContains() 62 Set<CompilationUnit> set = new VisitorSet<>(new ObjectIdentityHashCodeVisitor(), in visitorSetContains() 70 List<CompilationUnit> list = new ArrayList<>(); in visitorSetContainsAll() 73 Set<CompilationUnit> set = new VisitorSet<>(new ObjectIdentityHashCodeVisitor(), in visitorSetContainsAll() 81 Set<CompilationUnit> set = new VisitorSet<>(new ObjectIdentityHashCodeVisitor(), in visitorSetIterator() 83 CompilationUnit x1 = parse("class X{}"); in visitorSetIterator() 85 CompilationUnit x2 = parse("class X{}"); in visitorSetIterator() [all …]
|
D | VisitorMapTest.java | 3 import com.github.javaparser.ast.CompilationUnit; 19 CompilationUnit x1 = parse("class X{}"); in normalEqualsDoesDeepCompare() 20 CompilationUnit x2 = parse("class X{}"); in normalEqualsDoesDeepCompare() 22 Map<CompilationUnit, Integer> map = new HashMap<>(); in normalEqualsDoesDeepCompare() 30 CompilationUnit x1 = parse("class X{}"); in objectIdentityEqualsDoesShallowCompare() 31 CompilationUnit x2 = parse("class X{}"); in objectIdentityEqualsDoesShallowCompare() 33 …Map<CompilationUnit, Integer> map = new VisitorMap<>(new ObjectIdentityHashCodeVisitor(), new Obje… in objectIdentityEqualsDoesShallowCompare() 41 CompilationUnit x1 = parse("class X{}"); in visitorMapGet() 43 …Map<CompilationUnit, Integer> map = new VisitorMap<>(new ObjectIdentityHashCodeVisitor(), new Obje… in visitorMapGet() 50 CompilationUnit x1 = parse("class X{}"); in visitorMapContainsKey() [all …]
|
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ |
D | SharedSteps.java | 24 import com.github.javaparser.ast.CompilationUnit; 61 state.put("cu1", new CompilationUnit()); in givenACompilationUnit() 66 state.put("cu2", new CompilationUnit()); in givenASecondCompilationUnit() 91 CompilationUnit compilationUnit = parse(new File(url.toURI())); in whenTheJavaFileIsParsed() 97 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenTheCompilationUnitIsEqualToTheSecondCompilationUnit() 98 CompilationUnit compilationUnit2 = (CompilationUnit) state.get("cu2"); in thenTheCompilationUnitIsEqualToTheSecondCompilationUnit() 105 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenTheCompilationUnitHasTheSameHashcodeToTheSecondCompilationUnit() 106 CompilationUnit compilationUnit2 = (CompilationUnit) state.get("cu2"); in thenTheCompilationUnitHasTheSameHashcodeToTheSecondCompilationUnit() 113 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenTheCompilationUnitIsNotEqualToTheSecondCompilationUnit() 114 CompilationUnit compilationUnit2 = (CompilationUnit) state.get("cu2"); in thenTheCompilationUnitIsNotEqualToTheSecondCompilationUnit() [all …]
|
D | ManipulationSteps.java | 24 import com.github.javaparser.ast.CompilationUnit; 127 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenThePackageDeclarationIsSetTo() 134 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenAClassCalledIsAddedToTheCompilationUnit() 142 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenAStaticMethodCalledReturningIsAddedToClassInTheCompilationUnit() 154 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenVarargsCalledAreAddedToMethodInClass() 162 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenABlockStmtIsAddedToMethodInClass() 170 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenHelloWorldIsAddedToTheBodyOfMethodInClass() 181 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenMethodInClassHasItsNameConvertedToUppercase() 188 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenMethodInClassHasAnIntArgumentCalledAdded() 195 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenTheCompilationUnitIsCloned() [all …]
|
D | VisitorSteps.java | 24 import com.github.javaparser.ast.CompilationUnit; 115 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenTheSecondCompilationUnitIsCloned() 116 …CompilationUnit compilationUnit2 = (CompilationUnit) compilationUnit.accept(new CloneVisitor(), nu… in whenTheSecondCompilationUnitIsCloned() 122 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenTheCompilationUnitIsVisitedByTheVistor() 129 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenTheCompilationUnitIsVisitedByTheVariableNameCollectorVisitor() 136 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenTheCompilationUnitIsVisitedByTheVisitorThatReturnsVariableNames() 142 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenTheCompilationUnitIsVisitedByTheVisitorThatReturnsAllVariableNames() 148 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenTheCompilationUnitIsVisitedByThePositionTestVisitor()
|
D | ParsingSteps.java | 26 import com.github.javaparser.ast.CompilationUnit; 97 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenTheConstructorDeclarationAsAStringIs() 105 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenConstructorInClassDeclarationShortFormAsAStringIs() 113 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenMethod1InClass1DeclarationAsAStringIs() 121 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenMethodInClassDeclarationAsAStringShortFormIs() 129 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenFieldInClassContainsAnnotationValueIs() 223 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenMethodClassIsADefaultMethod() 231 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenMethodClassIsNotADefaultMethod() 238 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in getStatementInMethodInClass() 261 CompilationUnit compilationUnit = (CompilationUnit) state.get(stateKey); in assertAllNodesOfTheCompilationUnitHaveTheirParentSet() [all …]
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ |
D | PrettyPrintVisitorTest.java | 24 import com.github.javaparser.ast.CompilationUnit; 115 CompilationUnit cu = parse(code); in printLambdaIntersectionTypeAssignment() 136 CompilationUnit cu = parse(code); in printLambdaIntersectionTypeReturn() 145 CompilationUnit cu = parse(code); in printClassWithoutJavaDocButWithComment() 154 CompilationUnit cu = parse(code); in printImportsDefaultOrder() 167 CompilationUnit cu = parse(code); in printImportsOrdered() 180 CompilationUnit cu = new CompilationUnit(); in multilineJavadocGetsFormatted() 197 CompilationUnit cu = new CompilationUnit(); in emptyJavadocGetsFormatted() 211 CompilationUnit cu = new CompilationUnit(); in multilineJavadocWithLotsOfEmptyLinesGetsFormattedNeatly() 228 CompilationUnit cu = new CompilationUnit(); in singlelineJavadocGetsFormatted() [all …]
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/ |
D | Java1_1ValidatorTest.java | 6 import com.github.javaparser.ast.CompilationUnit; 26 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass() 45 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass() 61 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass() 81 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface() 101 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface() 118 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor() 138 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter() 159 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod() 174 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod() [all …]
|
D | Java1_2ValidatorTest.java | 6 import com.github.javaparser.ast.CompilationUnit; 23 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass() 42 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass() 58 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass() 78 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface() 98 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface() 115 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor() 135 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter() 157 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod() 172 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod() [all …]
|
D | Java5ValidatorTest.java | 6 import com.github.javaparser.ast.CompilationUnit; 23 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in genericsWithoutDiamond() 29 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topAnnotationDeclaration() 49 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedAnnotationDeclaration() 66 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("@interface X{" … in annotationMember() 87 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topEnum() 108 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedEnum() 152 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("import static x… in staticImport() 158 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X extends… in noPrimitiveTypeArguments()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | ExprResolutionTest.java | 19 import com.github.javaparser.ast.CompilationUnit; 58 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsDoubleAndByte() 75 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsByteAndDouble() 92 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsDoubleAndChar() 109 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsCharAndDouble() 126 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsDoubleAndInt() 143 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsIntAndDouble() 160 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsfloatAndByte() 177 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsByteAndfloat() 194 CompilationUnit compilationUnit = parse( in typeOfPlusExpressionsfloatAndChar() [all …]
|
D | GenericsResolutionTest.java | 19 import com.github.javaparser.ast.CompilationUnit; 51 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToString() 68 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToDeclaredClass() 85 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToInteger() 102 CompilationUnit cu = parseSample("Generics"); in resolveFieldOfVariableType() 119 CompilationUnit cu = parseSample("Generics"); in resolveFieldOfGenericReferringToVariableType() 140 CompilationUnit cu = parseSample("Generics"); in resolveUsageOfGenericFieldSimpleCase() 156 CompilationUnit cu = parseSample("Generics"); in resolveUsageOfGenericFieldIntermediateCase() 172 CompilationUnit cu = parseSample("Generics"); in resolveUsageOfGenericFieldAdvancedCase() 190 CompilationUnit cu = parseSample("Generics"); in resolveUsageOfMethodOfGenericClass() [all …]
|
/external/javaparser/javaparser-core-testing-bdd/src/test/resources/com/github/javaparser/ |
D | visitor_scenarios.story | 3 Given a CompilationUnit 4 Given a second CompilationUnit 13 When the CompilationUnit is cloned to the second CompilationUnit 14 Then the CompilationUnit is equal to the second CompilationUnit 15 Then the CompilationUnit has the same hashcode to the second CompilationUnit 20 Given a CompilationUnit 27 When the CompilationUnit is visited by the to uppercase visitor 36 Given a CompilationUnit 48 When the CompilationUnit is visited by the variable name collector visitor 54 Given a CompilationUnit [all …]
|
D | parsing_scenarios.story | 3 Given a CompilationUnit 15 Given a CompilationUnit 27 Given a CompilationUnit 41 Given a CompilationUnit 55 Given a CompilationUnit 56 Given a second CompilationUnit 66 When the following sources is parsed by the second CompilationUnit: 75 Then the CompilationUnit is equal to the second CompilationUnit 76 Then the CompilationUnit has the same hashcode to the second CompilationUnit 83 Given a CompilationUnit [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/ |
D | ClassOrInterfaceDeclarationContextResolutionTest.java | 19 import com.github.javaparser.ast.CompilationUnit; 64 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in getParentForTopClass() 74 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in solveExistingGenericType() 94 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in solveUnexistingGenericType() 105 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToDeclaredInstanceField() 116 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToDeclaredStaticField() 127 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToInheritedInstanceField() 138 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToInterfaceInheritedInstanceField() 149 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToInheritedStaticField() 160 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToUnknownElement() [all …]
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/ |
D | CompilationUnit.java | 81 public class CompilationUnit extends Node { class 96 public CompilationUnit() { in CompilationUnit() method in CompilationUnit 100 public CompilationUnit(String packageDeclaration) { in CompilationUnit() method in CompilationUnit 105 …public CompilationUnit(PackageDeclaration packageDeclaration, NodeList<ImportDeclaration> imports,… in CompilationUnit() method in CompilationUnit 113 …public CompilationUnit(TokenRange tokenRange, PackageDeclaration packageDeclaration, NodeList<Impo… in CompilationUnit() method in CompilationUnit 207 public CompilationUnit setImports(final NodeList<ImportDeclaration> imports) { in setImports() 210 return (CompilationUnit) this; in setImports() 220 public CompilationUnit setImport(int i, ImportDeclaration imports) { in setImport() 225 public CompilationUnit addImport(ImportDeclaration importDeclaration) { in addImport() 238 public CompilationUnit setPackageDeclaration(final PackageDeclaration packageDeclaration) { in setPackageDeclaration() [all …]
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/ |
D | NoCommentEqualsVisitorTest.java | 24 import com.github.javaparser.ast.CompilationUnit; 35 CompilationUnit p1 = parse("class X { }"); in testEquals() 36 CompilationUnit p2 = parse("class X { }"); in testEquals() 42 CompilationUnit p1 = parse("/* a */ class X { /** b */} //c"); in testEqualsWithDifferentComments() 43 CompilationUnit p2 = parse("/* b */ class X { } //c"); in testEqualsWithDifferentComments() 49 CompilationUnit p1 = parse("class X { }"); in testNotEquals() 50 CompilationUnit p2 = parse("class Y { }"); in testNotEquals()
|
D | NoCommentHashCodeVisitorTest.java | 3 import com.github.javaparser.ast.CompilationUnit; 14 CompilationUnit p1 = parse("class X { }"); in testEquals() 15 CompilationUnit p2 = parse("class X { }"); in testEquals() 21 CompilationUnit p1 = parse("/* a */ class X { /** b */} //c"); in testEqualsWithDifferentComments() 22 CompilationUnit p2 = parse("/* b */ class X { } //c"); in testEqualsWithDifferentComments() 30 CompilationUnit p1 = parse("class X { }"); in testNotEquals() 31 CompilationUnit p2 = parse("class Y { }"); in testNotEquals()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/ |
D | SourceRoot.java | 7 import com.github.javaparser.ast.CompilationUnit; 55 Result process(Path localPath, Path absolutePath, ParseResult<CompilationUnit> result); in process() 59 private final Map<Path, ParseResult<CompilationUnit>> cache = new ConcurrentHashMap<>(); 61 private Function<CompilationUnit, String> printer = new PrettyPrinter()::print; 94 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename, ParserConfigu… in tryToParse() 104 final ParseResult<CompilationUnit> result = new JavaParser(configuration) in tryToParse() 119 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename) throws IOExce… in tryToParse() 131 public List<ParseResult<CompilationUnit>> tryToParse(String startPackage) throws IOException { in tryToParse() 171 public List<ParseResult<CompilationUnit>> tryToParse() throws IOException { in tryToParse() 187 public List<ParseResult<CompilationUnit>> tryToParseParallelized(String startPackage) { in tryToParseParallelized() [all …]
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/ |
D | TypeCastingGenerator.java | 3 import com.github.javaparser.ast.CompilationUnit; 35 …protected void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterf… in generateNode() 36 Pair<CompilationUnit, ClassOrInterfaceDeclaration> baseCode = null; in generateNode() 55 final CompilationUnit baseCu = baseCode.a; in generateNode() 63 …private void generateAsType(CompilationUnit baseCu, ClassOrInterfaceDeclaration nodeCoid, ClassOrI… in generateAsType() 71 …private void generateToType(CompilationUnit nodeCu, CompilationUnit baseCu, ClassOrInterfaceDeclar… in generateToType() 80 …private void generateIfType(CompilationUnit nodeCu, CompilationUnit baseCu, ClassOrInterfaceDeclar… in generateIfType() 90 …private void generateIsType(CompilationUnit baseCu, ClassOrInterfaceDeclaration nodeCoid, ClassOrI… in generateIsType()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
D | JavaParser.java | 24 import com.github.javaparser.ast.CompilationUnit; 146 public ParseResult<CompilationUnit> parse(final InputStream in, Charset encoding) { in parse() 158 public ParseResult<CompilationUnit> parse(final InputStream in) { in parse() 174 …public ParseResult<CompilationUnit> parse(final File file, final Charset encoding) throws FileNotF… in parse() 175 ParseResult<CompilationUnit> result = parse(COMPILATION_UNIT, provider(file, encoding)); in parse() 189 public ParseResult<CompilationUnit> parse(final File file) throws FileNotFoundException { in parse() 190 …ParseResult<CompilationUnit> result = parse(COMPILATION_UNIT, provider(file, configuration.getChar… in parse() 207 …public ParseResult<CompilationUnit> parse(final Path path, final Charset encoding) throws IOExcept… in parse() 208 ParseResult<CompilationUnit> result = parse(COMPILATION_UNIT, provider(path, encoding)); in parse() 222 public ParseResult<CompilationUnit> parse(final Path path) throws IOException { in parse() [all …]
|
D | StaticJavaParser.java | 24 import com.github.javaparser.ast.CompilationUnit; 85 public static CompilationUnit parse(final InputStream in, Charset encoding) { in parse() 97 public static CompilationUnit parse(final InputStream in) { in parse() 113 …public static CompilationUnit parse(final File file, final Charset encoding) throws FileNotFoundEx… in parse() 126 public static CompilationUnit parse(final File file) throws FileNotFoundException { in parse() 142 … public static CompilationUnit parse(final Path path, final Charset encoding) throws IOException { in parse() 155 public static CompilationUnit parse(final Path path) throws IOException { in parse() 169 public static CompilationUnit parseResource(final String path) throws IOException { in parseResource() 186 …public static CompilationUnit parseResource(final String path, Charset encoding) throws IOExceptio… in parseResource() 203 …public static CompilationUnit parseResource(final ClassLoader classLoader, final String path, Char… in parseResource() [all …]
|
/external/javaparser/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/ |
D | JavaParserJsonDeserializerTest.java | 24 import com.github.javaparser.ast.CompilationUnit; 53 CompilationUnit cu = parse("public class X{} class Z{}"); in simpleTest() 119 …CompilationUnit cu = parse("/* block comment */\npublic class X{ \n // line comment\npublic void t… in testComment() 122 …CompilationUnit deserialized = (CompilationUnit) deserializer.deserializeObject(Json.createReader(… in testComment() 138 CompilationUnit cu = parse("public class X{ " + in testJavaDocComment() 148 …CompilationUnit deserialized = (CompilationUnit) deserializer.deserializeObject(Json.createReader(… in testJavaDocComment() 165 CompilationUnit cu = parse("public class X{} class Z{}"); in testNonMetaProperties() 168 …CompilationUnit deserialized = (CompilationUnit) deserializer.deserializeObject(Json.createReader(… in testNonMetaProperties() 201 CompilationUnit cu = parse("public class X{} class Z{}"); in testAttachingSymbolResolver() 204 …CompilationUnit deserialized = (CompilationUnit) deserializer.deserializeObject(Json.createReader(… in testAttachingSymbolResolver()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/resolution/typesolvers/ |
D | JavaParserTypeSolver.java | 20 import com.github.javaparser.ast.CompilationUnit; 44 private Map<String, CompilationUnit> parsedFiles = new HashMap<String, CompilationUnit>(); 45 private Map<String, List<CompilationUnit>> parsedDirectories = new HashMap<>(); 71 private CompilationUnit parse(File srcFile) throws FileNotFoundException { in parse() 78 private List<CompilationUnit> parseDirectory(File srcDirectory) throws FileNotFoundException { in parseDirectory() 80 List<CompilationUnit> units = new ArrayList<>(); in parseDirectory() 133 CompilationUnit compilationUnit = parse(srcFile); in tryToSolveTypeUncached() 143 List<CompilationUnit> compilationUnits = parseDirectory(srcFile.getParentFile()); in tryToSolveTypeUncached() 144 for (CompilationUnit compilationUnit : compilationUnits) { in tryToSolveTypeUncached()
|