/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/ |
D | VisitorListTest.java | 35 import com.github.javaparser.ast.CompilationUnit; 43 List<CompilationUnit> list = new ArrayList<>(); in visitorAddAll() 46 VisitorList<CompilationUnit> vList = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorAddAll() 55 List<CompilationUnit> list = new ArrayList<>(); in visitorAddAllAtIndex() 58 VisitorList<CompilationUnit> vList = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorAddAllAtIndex() 70 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorListContains() 71 VisitorList<CompilationUnit> list = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorListContains() 79 List<CompilationUnit> list = new ArrayList<>(); in visitorListContainsAll() 82 VisitorList<CompilationUnit> vList = new VisitorList<>(new ObjectIdentityHashCodeVisitor(), in visitorListContainsAll() 90 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 = JavaParser.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 = JavaParser.parse("class X{}"); in visitorSetIterator() 85 CompilationUnit x2 = JavaParser.parse("class X{}"); in visitorSetIterator() [all …]
|
D | VisitorMapTest.java | 4 import com.github.javaparser.ast.CompilationUnit; 19 CompilationUnit x1 = JavaParser.parse("class X{}"); in normalEqualsDoesDeepCompare() 20 CompilationUnit x2 = JavaParser.parse("class X{}"); in normalEqualsDoesDeepCompare() 22 Map<CompilationUnit, Integer> map = new HashMap<>(); in normalEqualsDoesDeepCompare() 30 CompilationUnit x1 = JavaParser.parse("class X{}"); in objectIdentityEqualsDoesShallowCompare() 31 CompilationUnit x2 = JavaParser.parse("class X{}"); in objectIdentityEqualsDoesShallowCompare() 33 …Map<CompilationUnit, Integer> map = new VisitorMap<>(new ObjectIdentityHashCodeVisitor(), new Obje… in objectIdentityEqualsDoesShallowCompare() 41 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorMapGet() 43 …Map<CompilationUnit, Integer> map = new VisitorMap<>(new ObjectIdentityHashCodeVisitor(), new Obje… in visitorMapGet() 50 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorMapContainsKey() [all …]
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/ |
D | SharedSteps.java | 25 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 = JavaParser.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 | 25 import com.github.javaparser.ast.CompilationUnit; 128 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenThePackageDeclarationIsSetTo() 135 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenAClassCalledIsAddedToTheCompilationUnit() 143 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenAStaticMethodCalledReturningIsAddedToClassInTheCompilationUnit() 155 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenVarargsCalledAreAddedToMethodInClass() 163 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenABlockStmtIsAddedToMethodInClass() 171 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenHelloWorldIsAddedToTheBodyOfMethodInClass() 182 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenMethodInClassHasItsNameConvertedToUppercase() 189 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in whenMethodInClassHasAnIntArgumentCalledAdded() 196 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; 96 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenTheConstructorDeclarationAsAStringIs() 104 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenConstructorInClassDeclarationShortFormAsAStringIs() 112 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenMethod1InClass1DeclarationAsAStringIs() 120 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenMethodInClassDeclarationAsAStringShortFormIs() 128 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenFieldInClassContainsAnnotationValueIs() 222 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenMethodClassIsADefaultMethod() 230 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in thenMethodClassIsNotADefaultMethod() 237 CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1"); in getStatementInMethodInClass() 260 CompilationUnit compilationUnit = (CompilationUnit) state.get(stateKey); in assertAllNodesOfTheCompilationUnitHaveTheirParentSet() [all …]
|
/external/javaparser/javaparser-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; 24 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topClass() 43 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedClass() 59 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{ void x… in localClass() 79 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topInterface() 99 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedInterface() 116 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in constructor() 136 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{X(" + a… in constructorParameter() 158 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in classMethod() 173 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("interface X{" +… in interfaceMethod() [all …]
|
D | Java5ValidatorTest.java | 7 import com.github.javaparser.ast.CompilationUnit; 25 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X<A>{List… in genericsWithoutDiamond() 31 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topAnnotationDeclaration() 51 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedAnnotationDeclaration() 68 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("@interface X{" … in annotationMember() 89 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider(allModifiers + "… in topEnum() 110 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X{" + all… in nestedEnum() 140 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("import static x… in staticImport() 146 …ParseResult<CompilationUnit> result = javaParser.parse(COMPILATION_UNIT, provider("class X extends… in noPrimitiveTypeArguments()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/ |
D | PrettyPrintVisitorTest.java | 25 import com.github.javaparser.ast.CompilationUnit; 115 CompilationUnit cu = JavaParser.parse(code); in printLambdaIntersectionTypeAssignment() 136 CompilationUnit cu = JavaParser.parse(code); in printLambdaIntersectionTypeReturn() 145 CompilationUnit cu = JavaParser.parse(code); in printClassWithoutJavaDocButWithComment() 154 CompilationUnit cu = JavaParser.parse(code); in printImportsDefaultOrder() 167 CompilationUnit cu = JavaParser.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-testing/src/test/resources/com/github/javaparser/bdd/ |
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 | 20 import com.github.javaparser.ast.CompilationUnit; 65 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in getParentForTopClass() 75 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in solveExistingGenericType() 96 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in solveUnexistingGenericType() 107 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToDeclaredInstanceField() 118 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToDeclaredStaticField() 129 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToInheritedInstanceField() 140 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToInterfaceInheritedInstanceField() 151 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToInheritedStaticField() 162 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolReferringToUnknownElement() [all …]
|
D | CompilationUnitContextResolutionTest.java | 20 import com.github.javaparser.ast.CompilationUnit; 64 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in getParent() 72 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in solveExistingGenericType() 86 CompilationUnit cu = parseSample("ClassWithTypeVariables"); in solveUnexistingGenericType() 96 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolReferringToStaticallyImportedValue() 109 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolReferringToStaticallyImportedUsingAsteriskValue() 122 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolReferringToStaticField() 132 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolAsValueReferringToStaticallyImportedValue() 145 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolAsValueReferringToStaticallyImportedUsingAsteriskValue() 158 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolAsValueReferringToStaticField() [all …]
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/ |
D | CompilationUnit.java | 81 public final 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 imports) { in addImport() 236 public CompilationUnit setPackageDeclaration(final PackageDeclaration packageDeclaration) { in setPackageDeclaration() [all …]
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/ |
D | SourceRoot.java | 7 import com.github.javaparser.ast.CompilationUnit; 56 Result process(Path localPath, Path absolutePath, ParseResult<CompilationUnit> result); in process() 60 private final Map<Path, ParseResult<CompilationUnit>> cache = new ConcurrentHashMap<>(); 62 private Function<CompilationUnit, String> printer = new PrettyPrinter()::print; 89 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename, JavaParser ja… in tryToParse() 102 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename, ParserConfigu… in tryToParse() 112 final ParseResult<CompilationUnit> result = new JavaParser(configuration) in tryToParse() 127 …public ParseResult<CompilationUnit> tryToParse(String startPackage, String filename) throws IOExce… in tryToParse() 139 public List<ParseResult<CompilationUnit>> tryToParse(String startPackage) throws IOException { in tryToParse() 177 public List<ParseResult<CompilationUnit>> tryToParse() throws IOException { in tryToParse() [all …]
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/visitor/ |
D | NoCommentEqualsVisitorTest.java | 30 import com.github.javaparser.ast.CompilationUnit; 36 CompilationUnit p1 = JavaParser.parse("class X { }"); in testEquals() 37 CompilationUnit p2 = JavaParser.parse("class X { }"); in testEquals() 43 CompilationUnit p1 = JavaParser.parse("/* a */ class X { /** b */} //c"); in testEqualsWithDifferentComments() 44 CompilationUnit p2 = JavaParser.parse("/* b */ class X { } //c"); in testEqualsWithDifferentComments() 50 CompilationUnit p1 = JavaParser.parse("class X { }"); in testNotEquals() 51 CompilationUnit p2 = JavaParser.parse("class Y { }"); in testNotEquals()
|
D | NoCommentHashCodeVisitorTest.java | 4 import com.github.javaparser.ast.CompilationUnit; 14 CompilationUnit p1 = JavaParser.parse("class X { }"); in testEquals() 15 CompilationUnit p2 = JavaParser.parse("class X { }"); in testEquals() 21 CompilationUnit p1 = JavaParser.parse("/* a */ class X { /** b */} //c"); in testEqualsWithDifferentComments() 22 CompilationUnit p2 = JavaParser.parse("/* b */ class X { } //c"); in testEqualsWithDifferentComments() 30 CompilationUnit p1 = JavaParser.parse("class X { }"); in testNotEquals() 31 CompilationUnit p2 = JavaParser.parse("class Y { }"); in testNotEquals()
|
/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-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ |
D | JavaParserTypeSolver.java | 20 import com.github.javaparser.ast.CompilationUnit; 48 …private Cache<String, Optional<CompilationUnit>> parsedFiles = CacheBuilder.newBuilder().softValue… 49 …private Cache<String, List<CompilationUnit>> parsedDirectories = CacheBuilder.newBuilder().softVal… 78 private Optional<CompilationUnit> parse(File srcFile) { in parse() 81 Optional<CompilationUnit> cu; in parse() 96 private List<CompilationUnit> parseDirectory(File srcDirectory) { in parseDirectory() 99 List<CompilationUnit> units = new ArrayList<>(); in parseDirectory() 104 Optional<CompilationUnit> unit = parse(file); in parseDirectory() 155 Optional<CompilationUnit> compilationUnit = parse(srcFile); 165 List<CompilationUnit> compilationUnits = parseDirectory(srcFile.getParentFile()); [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | GenericsResolutionTest.java | 20 import com.github.javaparser.ast.CompilationUnit; 49 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToString() 66 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToDeclaredClass() 83 CompilationUnit cu = parseSample("Generics"); in resolveFieldWithGenericTypeToInteger() 100 CompilationUnit cu = parseSample("Generics"); in resolveFieldOfVariableType() 117 CompilationUnit cu = parseSample("Generics"); in resolveFieldOfGenericReferringToVariableType() 138 CompilationUnit cu = parseSample("Generics"); in resolveUsageOfGenericFieldSimpleCase() 154 CompilationUnit cu = parseSample("Generics"); in resolveUsageOfGenericFieldIntermediateCase() 170 CompilationUnit cu = parseSample("Generics"); in resolveUsageOfGenericFieldAdvancedCase() 188 CompilationUnit cu = parseSample("Generics"); in resolveUsageOfMethodOfGenericClass() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ |
D | JavaParser.java | 29 import com.github.javaparser.ast.CompilationUnit; 91 public static CompilationUnit parse(final InputStream in, in parse() 108 public static CompilationUnit parse(final InputStream in, in parse() 113 CompilationUnit cu = new ASTParser(in1, encoding).CompilationUnit(); in parse() 133 public static CompilationUnit parse(final InputStream in) in parse() 138 public static CompilationUnit parse(final File file, final String encoding) in parse() 156 …public static CompilationUnit parse(final File file, final String encoding, boolean considerCommen… in parse() 177 public static CompilationUnit parse(final File file) throws ParseException, in parse() 182 public static CompilationUnit parse(final Reader reader, boolean considerComments) in parse() 187 CompilationUnit cu = new ASTParser(reader1).CompilationUnit(); in parse() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/ |
D | com_github_javaparser_ast_CompilationUnit.txt | 1 …Line 79) setPackage(pakage) ==> com.github.javaparser.ast.CompilationUnit.setPackage(com.github.ja… 2 …Line 80) setImports(imports) ==> com.github.javaparser.ast.CompilationUnit.setImports(java.util.Li… 3 …Line 81) setTypes(types) ==> com.github.javaparser.ast.CompilationUnit.setTypes(java.util.List<com… 4 …Line 87) setPackage(pakage) ==> com.github.javaparser.ast.CompilationUnit.setPackage(com.github.ja… 5 …Line 88) setImports(imports) ==> com.github.javaparser.ast.CompilationUnit.setImports(java.util.Li… 6 …Line 89) setTypes(types) ==> com.github.javaparser.ast.CompilationUnit.setTypes(java.util.List<com… 7 …om.github.javaparser.ast.visitor.GenericVisitor.visit(com.github.javaparser.ast.CompilationUnit, A) 8 …> com.github.javaparser.ast.visitor.VoidVisitor.visit(com.github.javaparser.ast.CompilationUnit, A) 15 …ge(new PackageDeclaration(name(name))) ==> com.github.javaparser.ast.CompilationUnit.setPackage(co… 17 …Line 222) addImport(name, false, false) ==> com.github.javaparser.ast.CompilationUnit.addImport(ja… [all …]
|
/external/javaparser/javaparser-testing/src/test/resources/com/github/javaparser/lexical_preservation_samples/ |
D | Example4_original.java.txt | 24 import com.github.javaparser.ast.CompilationUnit; 123 * {@link CompilationUnit} that represents it. 127 * @return CompilationUnit representing the Java source code 130 public static CompilationUnit parse(final InputStream in, Charset encoding) { 136 * {@link CompilationUnit} that represents it.<br> 140 * @return CompilationUnit representing the Java source code 143 public static CompilationUnit parse(final InputStream in) { 149 * {@link CompilationUnit} that represents it. 153 * @return CompilationUnit representing the Java source code 157 …public static CompilationUnit parse(final File file, final Charset encoding) throws FileNotFoundEx… [all …]
|