Home
last modified time | relevance | path

Searched refs:parseSample (Results 1 – 25 of 44) sorted by relevance

12

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DClassOrInterfaceDeclarationContextResolutionTest.java64 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()
170 CompilationUnit cu = parseSample("ClassWithSymbols"); in solveSymbolAsValueReferringToDeclaredInstanceField()
[all …]
DCompilationUnitContextResolutionTest.java64 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()
111 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolReferringToStaticallyImportedUsingAsteriskValue()
125 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolReferringToStaticField()
135 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolAsValueReferringToStaticallyImportedValue()
148 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolAsValueReferringToStaticallyImportedUsingAsteriskValue()
161 CompilationUnit cu = parseSample("CompilationUnitSymbols"); in solveSymbolAsValueReferringToStaticField()
171 CompilationUnit cu = parseSample("CompilationUnitWithImports"); in solveTypeInSamePackage()
[all …]
DEnumDeclarationContextResolutionTest.java51 CompilationUnit cu = parseSample("AnEnum"); in solveSymbolReferringToDeclaredInstanceField()
62 CompilationUnit cu = parseSample("AnEnum"); in solveSymbolReferringToDeclaredStaticField()
73 CompilationUnit cu = parseSample("AnEnum"); in solveSymbolReferringToValue()
84 CompilationUnit cu = parseSample("AnEnum"); in solveSymbolAsValueReferringToDeclaredInstanceField()
95 CompilationUnit cu = parseSample("AnEnum"); in solveSymbolAsValueReferringToDeclaredStaticField()
106 CompilationUnit cu = parseSample("AnEnum"); in solveSymbolAsValueReferringToValue()
DLambdaExprContextResolutionTest.java59 CompilationUnit cu = parseSample("Lambda"); in solveParameterOfLambdaInMethodCallExpr()
76 CompilationUnit cu = parseSample("Lambda"); in solveParameterOfLambdaInFieldDecl()
96 CompilationUnit cu = parseSample("Lambda"); in solveParameterOfLambdaInVarDecl()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DGenericsResolutionTest.java51 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()
202 CompilationUnit cu = parseSample("GenericsWildcard"); in resolveUsageOfMethodOfGenericClassWithUnboundedWildcard()
[all …]
DAnnotationsResolutionTest.java55 CompilationUnit cu = parseSample("Annotations"); in solveJavaParserMarkerAnnotation()
71 CompilationUnit cu = parseSample("Annotations"); in solveJavaParserSingleMemberAnnotation()
87 CompilationUnit cu = parseSample("Annotations"); in solveJavaParserNormalAnnotation()
103 CompilationUnit cu = parseSample("Annotations"); in solveReflectionMarkerAnnotation()
120 CompilationUnit cu = parseSample("Annotations"); in solveReflectionSingleMemberAnnotation()
140 CompilationUnit cu = parseSample("Annotations"); in solveJavassistMarkerAnnotation()
157 CompilationUnit cu = parseSample("Annotations"); in solveJavassistSingleMemberAnnotation()
174 CompilationUnit cu = parseSample("Annotations"); in solveJavassistNormalAnnotation()
191 CompilationUnit cu = parseSample("Annotations"); in solveJavaParserMetaAnnotations()
208 CompilationUnit cu = parseSample("Annotations"); in solveReflectionMetaAnnotations()
[all …]
DLambdaResolutionTest.java37 CompilationUnit cu = parseSample("Lambda"); in lambdaMapParameter()
51 CompilationUnit cu = parseSample("Lambda"); in personsStream()
65 CompilationUnit cu = parseSample("Lambda"); in lambdaMap()
83 CompilationUnit cu = parseSample("Lambda"); in lambdaReduce()
96 CompilationUnit cu = parseSample("Lambda"); in lambdaPrint()
109 CompilationUnit cu = parseSample("Lambda"); in lambdaBifunc()
122 CompilationUnit cu = parseSample("LambdaCollect"); in lambdaCollectParam()
137 CompilationUnit cu = parseSample("LambdaCollect"); in lambdaCollect()
150 CompilationUnit cu = parseSample("LambdaMulti"); in lambdaBlockExplicitReturn()
163 CompilationUnit cu = parseSample("LambdaMulti"); in lambdaBlockMultiLineReturn()
[all …]
DAbstractResolutionTest.java31 return parseSample(sampleName, "java"); in parseSampleWithStandardExtension()
34 protected CompilationUnit parseSample(String sampleName) { in parseSample() method in AbstractResolutionTest
35 return parseSample(sampleName, "java.txt"); in parseSample()
38 private CompilationUnit parseSample(String sampleName, String extension) { in parseSample() method in AbstractResolutionTest
DContextTest.java61 private CompilationUnit parseSample(String sampleName) { in parseSample() method in ContextTest
68 CompilationUnit cu = parseSample("ReferencesToField"); in resolveDeclaredFieldReference()
84 CompilationUnit cu = parseSample("ReferencesToField"); in resolveInheritedFieldReference()
100 CompilationUnit cu = parseSample("ReferencesToParameter"); in resolveParameterReference()
115 CompilationUnit cu = parseSample("Navigator"); in resolveReferenceToImportedType()
138 CompilationUnit cu = parseSample("Navigator2"); in resolveReferenceUsingQualifiedName()
162 CompilationUnit cu = parseSample("Navigator3"); in resolveReferenceToClassesInTheSamePackage()
185 CompilationUnit cu = parseSample("Navigator"); in resolveReferenceToClassInJavaLang()
209 CompilationUnit cu = parseSample("Navigator"); in resolveReferenceToMethod()
228 CompilationUnit cu = parseSample("Navigator"); in resolveCascadeOfReferencesToMethod()
[all …]
DMethodsResolutionTest.java60 CompilationUnit cu = parseSample("PlatformTestUtil"); in testConsistentMethodResultion()
107 CompilationUnit cu = parseSample("AccessThroughSuper"); in solveMethodAccessThroughSuper()
119 CompilationUnit cu = parseSample("ClassExpression"); in solveMethodWithClassExpressionAsParameter()
130 CompilationUnit cu = parseSample("MethodCalls"); in solveMethodInInterfaceParent()
145 CompilationUnit cu = parseSample("Issue338"); in solveMethodWithTypePromotionsToLong()
179 CompilationUnit cu = parseSample("Issue338"); in solveMethodWithTypePromotionsToInt()
212 CompilationUnit cu = parseSample("Issue338"); in solveMethodWithTypePromotionsToShort()
244 CompilationUnit cu = parseSample("Issue338"); in solveMethodWithTypePromotionsToByte()
275 CompilationUnit cu = parseSample("Issue338"); in solveMethodWithTypePromotionsToLongWithExtraParam()
309 CompilationUnit cu = parseSample("Issue338"); in solveMethodWithTypePromotionsToIntWithExtraParam()
[all …]
DFieldsResolutionTest.java57 CompilationUnit cu = parseSample("AccessClassMemberThroughThis"); in accessClassFieldThroughThis()
69 CompilationUnit cu = parseSample("AccessClassMemberThroughThis"); in accessClassFieldThroughThisWithCompetingSymbolInParentContext()
87 CompilationUnit cu = parseSample("AccessEnumMemberThroughThis"); in accessEnumFieldThroughThis()
99 CompilationUnit cu = parseSample("AccessEnumMemberThroughThis"); in accessEnumMethodThroughThis()
111 CompilationUnit cu = parseSample("AccessThroughSuper"); in accessClassFieldThroughSuper()
127 CompilationUnit cu = parseSample("AccessClassMemberThroughThis"); in resolveClassFieldThroughThis()
149 CompilationUnit cu = parseSample("AccessThroughSuper"); in resolveClassFieldThroughSuper()
172 CompilationUnit cu = parseSample("ClassExtendingUnknownClass"); in resolveClassFieldOfClassExtendingUnknownClass1()
194 CompilationUnit cu = parseSample("ClassExtendingUnknownClass"); in resolveClassFieldOfClassExtendingUnknownClass2()
216 CompilationUnit cu = parseSample("ReflectionTypeSolverFieldFromInterfaceResolution"); in resolveInheritedFieldFromInterface()
DConstructorsResolutionTest.java34 CompilationUnit cu = parseSample("ConstructorCalls"); in solveNormalConstructor()
53 CompilationUnit cu = parseSample("ConstructorCalls"); in solveInnerClassConstructor()
72 CompilationUnit cu = parseSample("ConstructorCalls"); in solveInnerClassConstructorWithNewScope()
91 CompilationUnit cu = parseSample("ConstructorCalls"); in solveInnerInnerClassConstructor()
113 CompilationUnit cu = parseSample("ConstructorCallsEnum"); in solveEnumConstructor()
129 CompilationUnit cu = parseSample("ReflectionTypeSolverConstructorResolution"); in solveNonPublicParentConstructorReflection()
DStatementContextResolutionTest.java39 CompilationUnit cu = parseSample("LocalVariableInParent"); in resolveLocalVariableInParentOfParent()
51 CompilationUnit cu = parseSample("LocalVariableInParent"); in resolveLocalVariableInParent()
63 CompilationUnit cu = parseSample("LocalVariableInParent"); in resolveLocalVariableInSameParent()
75 CompilationUnit cu = parseSample("LocalVariableInParent"); in resolveLocalAndSeveralAnnidatedLevels()
92 CompilationUnit cu = parseSample("LocalVariableInParent"); in resolveMethodOnGenericClass()
DVariadicResolutionTest.java45 CompilationUnit cu = parseSample("Generics_issue7"); in issue7()
61 CompilationUnit cu = parseSample("MethodCalls"); in methodCallWithReferenceTypeAsVaridicArgumentIsSolved()
75 CompilationUnit cu = parseSample("MethodCalls"); in resolveVariadicMethodWithGenericArgument()
89 CompilationUnit cu = parseSample("MethodCalls"); in selectMostSpecificVariadic()
DEnumResolutionTest.java45 CompilationUnit cu = parseSample("SwitchOnEnum"); in switchOnEnum()
58 CompilationUnit cu = parseSample("EnumAndStaticInitializer"); in enumAndStaticInitializer()
74 CompilationUnit cu = parseSample("EnumFieldAccess"); in resolveEnumConstantAccess()
DUnknownMethodsResolutionTest.java21 CompilationUnit cu = parseSample("UnknownMethods"); in testUnknownMethod1()
33 CompilationUnit cu = parseSample("UnknownMethods"); in testUnknownMethod2()
DMethodLikeSignaturesTest.java21 CompilationUnit cu = parseSample("MethodLikeSignaturesTest"); in checkReflectionConstructorSignature()
38 CompilationUnit cu = parseSample("MethodLikeSignaturesTest"); in checkReflectionMethodSignature()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserAnonymousClassDeclarationTest.java22 CompilationUnit cu = parseSample("AnonymousClassDeclarations"); in anonymousClassAsMethodArgument()
38 CompilationUnit cu = parseSample("AnonymousClassDeclarations"); in callingSuperClassInnerClassMethod()
54 CompilationUnit cu = parseSample("AnonymousClassDeclarations"); in callingAnonymousClassInnerMethod()
71 CompilationUnit cu = parseSample("AnonymousClassDeclarations"); in usingAnonymousSuperClassInnerType()
86 CompilationUnit cu = parseSample("AnonymousClassDeclarations"); in usingAnonymousClassInnerType()
101 CompilationUnit cu = parseSample("AnonymousClassDeclarations"); in callingScopedAnonymousClassInnerMethod()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/reflectionmodel/
DSymbolResolutionResolutionTest.java40 CompilationUnit cu = parseSample("ReflectionFieldOfItself"); in getTypeOfField()
51 CompilationUnit cu = parseSample("ReflectionFieldOfItself"); in getTypeOfFieldAccess()
62 CompilationUnit cu = parseSample("JreConditionalExpression"); in conditionalExpressionExample()
75 CompilationUnit cu = parseSample("JreConditionalExpression"); in conditionalExpressionExampleFollowUp1()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/
DJavaParserTypeParameterResolutionTest.java40 CompilationUnit cu = parseSample("GenericMethodArguments"); in testGenericArguments()
62 CompilationUnit cu = parseSample("MethodTypeParameter"); in declaredOnMethodPositiveCase()
79 CompilationUnit cu = parseSample("ClassTypeParameter"); in declaredOnMethodNegativeCase()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DJavaSymbolSolverTest.java36 CompilationUnit cu = parseSample("SymbolResolverExample"); in resolveMethodDeclaration()
51 CompilationUnit cu = parseSample("SymbolResolverExample"); in resolveArrayType()
DFindingAllFieldsTest.java38 CompilationUnit cu = parseSample("AClassWithFields"); in findAllInheritedFields()
48 CompilationUnit cu = parseSample("AClassWithFieldsAndGenerics"); in findAllInheritedFieldsAndGenerics()
DIssue186Test.java23 CompilationUnit cu = parseSample("Issue186"); in lambdaFlatMapIssue()
35 CompilationUnit cu = parseSample("Issue186"); in lambdaPrimitivesIssue()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DCommentsInserterTest.java41 private ParseResult<CompilationUnit> parseSample(String sampleName) throws IOException { in parseSample() method in CommentsInserterTest
52 ParseResult result = parseSample("Issue290"); in issue290()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DMultiCatchMethodCallExprTest.java19 CompilationUnit cu = parseSample("Issue1482"); in issue1482()

12