/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/ |
D | JavaParserFactory.java | 48 public static Context getContext(Node node, TypeSolver typeSolver) { in getContext() argument 52 return new CompilationUnitContext((CompilationUnit) node, typeSolver); in getContext() 54 return new ForechStatementContext((ForeachStmt) node, typeSolver); in getContext() 56 return new ForStatementContext((ForStmt) node, typeSolver); in getContext() 58 return new LambdaExprContext((LambdaExpr) node, typeSolver); in getContext() 60 return new MethodContext((MethodDeclaration) node, typeSolver); in getContext() 62 return new ConstructorContext((ConstructorDeclaration) node, typeSolver); in getContext() 64 … return new ClassOrInterfaceDeclarationContext((ClassOrInterfaceDeclaration) node, typeSolver); in getContext() 66 return new MethodCallExprContext((MethodCallExpr) node, typeSolver); in getContext() 68 return new EnumDeclarationContext((EnumDeclaration) node, typeSolver); in getContext() [all …]
|
D | JavaParserFacade.java | 66 private TypeSolver typeSolver; field in JavaParserFacade 72 private JavaParserFacade(TypeSolver typeSolver) { in JavaParserFacade() argument 73 this.typeSolver = typeSolver.getRoot(); in JavaParserFacade() 74 this.symbolSolver = new SymbolSolver(typeSolver); in JavaParserFacade() 75 this.typeExtractor = new TypeExtractor(typeSolver, this); in JavaParserFacade() 79 return typeSolver; in getTypeSolver() 86 public static JavaParserFacade get(TypeSolver typeSolver) { in get() argument 87 return instances.computeIfAbsent(typeSolver, JavaParserFacade::new); in get() 97 … static ResolvedType solveGenericTypes(ResolvedType type, Context context, TypeSolver typeSolver) { in solveGenericTypes() argument 99 return context.solveGenericType(type.describe(), typeSolver).orElse(type); in solveGenericTypes() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ |
D | ReferenceTypeTest.java | 48 private TypeSolver typeSolver; field in ReferenceTypeTest 52 typeSolver = new ReflectionTypeSolver(); in setup() 53 …ject = new ReferenceTypeImpl(new ReflectionClassDeclaration(Object.class, typeSolver), typeSolver); in setup() 54 …ring = new ReferenceTypeImpl(new ReflectionClassDeclaration(String.class, typeSolver), typeSolver); in setup() 56 new ReflectionInterfaceDeclaration(List.class, typeSolver), in setup() 57 …le(ResolvedTypeParameterDeclaration.onType("A", "foo.Bar", Collections.emptyList()))), typeSolver); in setup() 59 new ReflectionInterfaceDeclaration(List.class, typeSolver), in setup() 60 …erenceTypeImpl(new ReflectionClassDeclaration(String.class, typeSolver), typeSolver)), typeSolver); in setup() 62 new ReflectionClassDeclaration(LinkedList.class, typeSolver), in setup() 63 …erenceTypeImpl(new ReflectionClassDeclaration(String.class, typeSolver), typeSolver)), typeSolver); in setup() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/ |
D | CompilationUnitContextResolutionTest.java | 55 private TypeSolver typeSolver; field in CompilationUnitContextResolutionTest 59 typeSolver = new ReflectionTypeSolver(); in setup() 65 Context context = new CompilationUnitContext(cu, typeSolver); in getParent() 73 Context context = new CompilationUnitContext(cu, typeSolver); in solveExistingGenericType() 87 Context context = new CompilationUnitContext(cu, typeSolver); in solveUnexistingGenericType() 97 Context context = new CompilationUnitContext(cu, typeSolver); in solveSymbolReferringToStaticallyImportedValue() 99 CombinedTypeSolver typeSolver = new CombinedTypeSolver(); in solveSymbolReferringToStaticallyImportedValue() local 100 typeSolver.add(new ReflectionTypeSolver()); in solveSymbolReferringToStaticallyImportedValue() 101 typeSolver.add(new JarTypeSolver(adaptPath("src/test/resources/junit-4.8.1.jar"))); in solveSymbolReferringToStaticallyImportedValue() 102 … SymbolReference<? extends ResolvedValueDeclaration> ref = context.solveSymbol("out", typeSolver); in solveSymbolReferringToStaticallyImportedValue() [all …]
|
D | ClassOrInterfaceDeclarationContextResolutionTest.java | 56 private TypeSolver typeSolver; field in ClassOrInterfaceDeclarationContextResolutionTest 60 typeSolver = new ReflectionTypeSolver(); in setup() 67 … Context context = new ClassOrInterfaceDeclarationContext(classOrInterfaceDeclaration, typeSolver); in getParentForTopClass() 70 assertEquals(new CompilationUnitContext(cu, typeSolver), context.getParent()); in getParentForTopClass() 77 … Context context = new ClassOrInterfaceDeclarationContext(classOrInterfaceDeclaration, typeSolver); in solveExistingGenericType() 98 … Context context = new ClassOrInterfaceDeclarationContext(classOrInterfaceDeclaration, typeSolver); in solveUnexistingGenericType() 109 … Context context = new ClassOrInterfaceDeclarationContext(classOrInterfaceDeclaration, typeSolver); in solveSymbolReferringToDeclaredInstanceField() 120 … Context context = new ClassOrInterfaceDeclarationContext(classOrInterfaceDeclaration, typeSolver); in solveSymbolReferringToDeclaredStaticField() 131 … Context context = new ClassOrInterfaceDeclarationContext(classOrInterfaceDeclaration, typeSolver); in solveSymbolReferringToInheritedInstanceField() 142 … Context context = new ClassOrInterfaceDeclarationContext(classOrInterfaceDeclaration, typeSolver); in solveSymbolReferringToInterfaceInheritedInstanceField() [all …]
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ |
D | TypeInferenceCache.java | 17 …public static void record(TypeSolver typeSolver, LambdaExpr lambdaExpr, String paramName, Resolved… in record() argument 18 if (!typeForLambdaParameters.containsKey(typeSolver)) { in record() 19 typeForLambdaParameters.put(typeSolver, new IdentityHashMap<>()); in record() 21 if (!typeForLambdaParameters.get(typeSolver).containsKey(lambdaExpr)) { in record() 22 typeForLambdaParameters.get(typeSolver).put(lambdaExpr, new HashMap<>()); in record() 24 typeForLambdaParameters.get(typeSolver).get(lambdaExpr).put(paramName, type); in record() 27 …public static Optional<ResolvedType> retrieve(TypeSolver typeSolver, LambdaExpr lambdaExpr, String… in retrieve() argument 28 if (!typeForLambdaParameters.containsKey(typeSolver)) { in retrieve() 31 if (!typeForLambdaParameters.get(typeSolver).containsKey(lambdaExpr)) { in retrieve() 34 if (!typeForLambdaParameters.get(typeSolver).get(lambdaExpr).containsKey(paramName)) { in retrieve() [all …]
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | StatementContext.java | 44 public StatementContext(N wrappedNode, TypeSolver typeSolver) { in StatementContext() argument 45 super(wrappedNode, typeSolver); in StatementContext() 48 …extends ResolvedValueDeclaration> solveInBlock(String name, TypeSolver typeSolver, Statement stmt)… in solveInBlock() argument 63 …olDeclarator = JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements().get(i), typeSolver); in solveInBlock() 71 …rn JavaParserFactory.getContext(requireParentNode(stmt), typeSolver).solveSymbol(name, typeSolver); in solveInBlock() 74 …public static Optional<Value> solveInBlockAsValue(String name, TypeSolver typeSolver, Statement st… in solveInBlockAsValue() argument 89 …olDeclarator = JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements().get(i), typeSolver); in solveInBlockAsValue() 97 …avaParserFactory.getContext(requireParentNode(stmt), typeSolver).solveSymbolAsValue(name, typeSolv… in solveInBlockAsValue() 101 public Optional<Value> solveSymbolAsValue(String name, TypeSolver typeSolver) { in solveSymbolAsValue() argument 104 …SymbolDeclarator symbolDeclarator = JavaParserFactory.getSymbolDeclarator(wrappedNode, typeSolver); in solveSymbolAsValue() [all …]
|
D | ClassOrInterfaceDeclarationContext.java | 44 …lassOrInterfaceDeclarationContext(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver) { in ClassOrInterfaceDeclarationContext() argument 45 super(wrappedNode, typeSolver); in ClassOrInterfaceDeclarationContext() 46 …is.javaParserTypeDeclarationAdapter = new JavaParserTypeDeclarationAdapter(wrappedNode, typeSolver, in ClassOrInterfaceDeclarationContext() 55 …mbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { in solveSymbol() argument 56 if (typeSolver == null) throw new IllegalArgumentException(); in solveSymbol() 63 return getParent().solveSymbol(name, typeSolver); in solveSymbol() 67 public Optional<Value> solveSymbolAsValue(String name, TypeSolver typeSolver) { in solveSymbolAsValue() argument 68 if (typeSolver == null) throw new IllegalArgumentException(); in solveSymbolAsValue() 75 return getParent().solveSymbolAsValue(name, typeSolver); in solveSymbolAsValue() 79 public Optional<ResolvedType> solveGenericType(String name, TypeSolver typeSolver) { in solveGenericType() argument [all …]
|
D | AbstractMethodLikeDeclarationContext.java | 29 public AbstractMethodLikeDeclarationContext(T wrappedNode, TypeSolver typeSolver) { in AbstractMethodLikeDeclarationContext() argument 30 super(wrappedNode, typeSolver); in AbstractMethodLikeDeclarationContext() 33 …mbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { in solveSymbol() argument 35 SymbolDeclarator sb = JavaParserFactory.getSymbolDeclarator(parameter, typeSolver); in solveSymbol() 43 return getParent().solveSymbol(name, typeSolver); in solveSymbol() 47 public final Optional<ResolvedType> solveGenericType(String name, TypeSolver typeSolver) { in solveGenericType() argument 50 … return Optional.of(new ResolvedTypeVariable(new JavaParserTypeParameter(tp, typeSolver))); in solveGenericType() 53 return super.solveGenericType(name, typeSolver); in solveGenericType() 57 public final Optional<Value> solveSymbolAsValue(String name, TypeSolver typeSolver) { in solveSymbolAsValue() argument 59 SymbolDeclarator sb = JavaParserFactory.getSymbolDeclarator(parameter, typeSolver); in solveSymbolAsValue() [all …]
|
D | FieldAccessContext.java | 50 public FieldAccessContext(FieldAccessExpr wrappedNode, TypeSolver typeSolver) { in FieldAccessContext() argument 51 super(wrappedNode, typeSolver); in FieldAccessContext() 55 …mbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { in solveSymbol() argument 58 … ResolvedType typeOfThis = JavaParserFacade.get(typeSolver).getTypeOfThisIn(wrappedNode); in solveSymbol() 59 …return new SymbolSolver(typeSolver).solveSymbolInType(typeOfThis.asReferenceType().getTypeDeclarat… in solveSymbol() 62 …ParserFactory.getContext(requireParentNode(wrappedNode), typeSolver).solveSymbol(name, typeSolver); in solveSymbol() 66 public SymbolReference<ResolvedTypeDeclaration> solveType(String name, TypeSolver typeSolver) { in solveType() argument 67 …vaParserFactory.getContext(requireParentNode(wrappedNode), typeSolver).solveType(name, typeSolver); in solveType() 71 …Method(String name, List<ResolvedType> parameterTypes, boolean staticOnly, TypeSolver typeSolver) { in solveMethod() argument 72 …y.getContext(requireParentNode(wrappedNode), typeSolver).solveMethod(name, parameterTypes, false, … in solveMethod() [all …]
|
D | JavaParserTypeDeclarationAdapter.java | 28 private TypeSolver typeSolver; field in JavaParserTypeDeclarationAdapter 32 …rationAdapter(com.github.javaparser.ast.body.TypeDeclaration<?> wrappedNode, TypeSolver typeSolver, in JavaParserTypeDeclarationAdapter() argument 36 this.typeSolver = typeSolver; in JavaParserTypeDeclarationAdapter() 41 public SymbolReference<ResolvedTypeDeclaration> solveType(String name, TypeSolver typeSolver) { in solveType() argument 43 … return SymbolReference.solved(JavaParserFacade.get(typeSolver).getTypeDeclaration(wrappedNode)); in solveType() 51 … return SymbolReference.solved(JavaParserFacade.get(typeSolver).getTypeDeclaration(internalType)); in solveType() 53 …tory.getContext(internalType, typeSolver).solveType(name.substring(wrappedNode.getName().getId().l… in solveType() 55 …tory.getContext(internalType, typeSolver).solveType(name.substring(internalType.getName().getId().… in solveType() 65 return SymbolReference.solved(new JavaParserTypeParameter(astTp, typeSolver)); in solveType() 83 return context.getParent().solveType(name, typeSolver); in solveType() [all …]
|
D | CompilationUnitContext.java | 60 public CompilationUnitContext(CompilationUnit wrappedNode, TypeSolver typeSolver) { in CompilationUnitContext() argument 61 super(wrappedNode, typeSolver); in CompilationUnitContext() 69 …mbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { in solveSymbol() argument 76 SymbolReference<ResolvedTypeDeclaration> type = this.solveType(typeName, typeSolver); in solveSymbol() 78 …return new SymbolSolver(typeSolver).solveSymbolInType(type.getCorrespondingDeclaration(), memberNa… in solveSymbol() 90 ResolvedTypeDeclaration importedType = typeSolver.solveType(qName); in solveSymbol() 91 …olReference<? extends ResolvedValueDeclaration> ref = new SymbolSolver(typeSolver).solveSymbolInTy… in solveSymbol() 103 ResolvedTypeDeclaration importedType = typeSolver.solveType(typeName); in solveSymbol() 104 … return new SymbolSolver(typeSolver).solveSymbolInType(importedType, memberName); in solveSymbol() 115 public SymbolReference<ResolvedTypeDeclaration> solveType(String name, TypeSolver typeSolver) { in solveType() argument [all …]
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/ |
D | SymbolSolver.java | 51 private TypeSolver typeSolver; field in SymbolSolver 53 public SymbolSolver(TypeSolver typeSolver) { in SymbolSolver() argument 54 if (typeSolver == null) throw new IllegalArgumentException(); in SymbolSolver() 56 this.typeSolver = typeSolver; in SymbolSolver() 60 return context.solveSymbol(name, typeSolver); in solveSymbol() 64 return solveSymbol(name, JavaParserFactory.getContext(node, typeSolver)); in solveSymbol() 68 return context.solveSymbolAsValue(name, typeSolver); in solveSymbolAsValue() 72 Context context = JavaParserFactory.getContext(node, typeSolver); in solveSymbolAsValue() 77 return context.solveType(name, typeSolver); in solveType() 81 return solveType(name, JavaParserFactory.getContext(node, typeSolver)); in solveType() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | ContextTest.java | 54 …private TypeSolver typeSolver = new CombinedTypeSolver(new MemoryTypeSolver(), new ReflectionTypeS… field in ContextTest 69 SymbolSolver symbolSolver = new SymbolSolver(typeSolver); in resolveDeclaredFieldReference() 85 SymbolSolver symbolSolver = new SymbolSolver(typeSolver); in resolveInheritedFieldReference() 100 SymbolSolver symbolSolver = new SymbolSolver(typeSolver); in resolveParameterReference() 118 TypeSolver typeSolver = mock(TypeSolver.class); in resolveReferenceToImportedType() local 119 when(typeSolver.getRoot()).thenReturn(typeSolver); in resolveReferenceToImportedType() 120 …when(typeSolver.solveType("java.lang.Object")).thenReturn(new ReflectionClassDeclaration(Object.cl… in resolveReferenceToImportedType() 121 …when(typeSolver.tryToSolveType("com.github.javaparser.ast.CompilationUnit")).thenReturn(SymbolRefe… in resolveReferenceToImportedType() 122 SymbolSolver symbolSolver = new SymbolSolver(typeSolver); in resolveReferenceToImportedType() 141 TypeSolver typeSolver = mock(TypeSolver.class); in resolveReferenceUsingQualifiedName() local [all …]
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/ |
D | JavassistClassDeclaration.java | 56 private TypeSolver typeSolver; field in JavassistClassDeclaration 59 public JavassistClassDeclaration(CtClass ctClass, TypeSolver typeSolver) { in JavassistClassDeclaration() argument 67 this.typeSolver = typeSolver; in JavassistClassDeclaration() 68 … this.javassistTypeDeclarationAdapter = new JavassistTypeDeclarationAdapter(ctClass, typeSolver); in JavassistClassDeclaration() 73 … return new ReferenceTypeImpl(typeSolver.solveType(Object.class.getCanonicalName()), typeSolver); in object() 88 return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); in isAssignableBy() 127 …hodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes, TypeSolver typeSolver, in solveMethodAsUsage() argument 129 …return JavassistUtils.getMethodUsage(ctClass, name, argumentsTypes, typeSolver, invokationContext); in solveMethodAsUsage() 133 …mbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { in solveSymbol() argument 136 return SymbolReference.solved(new JavassistFieldDeclaration(field, typeSolver)); in solveSymbol() [all …]
|
D | JavassistInterfaceDeclaration.java | 50 private TypeSolver typeSolver; field in JavassistInterfaceDeclaration 57 ", typeSolver=" + typeSolver + in toString() 61 public JavassistInterfaceDeclaration(CtClass ctClass, TypeSolver typeSolver) { in JavassistInterfaceDeclaration() argument 66 this.typeSolver = typeSolver; in JavassistInterfaceDeclaration() 67 … this.javassistTypeDeclarationAdapter = new JavassistTypeDeclarationAdapter(ctClass, typeSolver); in JavassistInterfaceDeclaration() 73 …n Arrays.stream(ctClass.getInterfaces()).map(i -> new JavassistInterfaceDeclaration(i, typeSolver)) in getInterfacesExtended() 74 .map(i -> new ReferenceTypeImpl(i, typeSolver)).collect(Collectors.toList()); in getInterfacesExtended() 100 …hodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes, TypeSolver typeSolver, in solveMethodAsUsage() argument 103 …return JavassistUtils.getMethodUsage(ctClass, name, argumentsTypes, typeSolver, invokationContext); in solveMethodAsUsage() 114 candidates.add(new JavassistMethodDeclaration(method, typeSolver)); in solveMethod() [all …]
|
D | JavassistFactory.java | 32 public static ResolvedType typeUsageFor(CtClass ctClazz, TypeSolver typeSolver) { in typeUsageFor() argument 35 return new ResolvedArrayType(typeUsageFor(ctClazz.getComponentType(), typeSolver)); in typeUsageFor() 44 return new ReferenceTypeImpl(new JavassistInterfaceDeclaration(ctClazz, typeSolver), in typeUsageFor() 45 typeSolver); in typeUsageFor() 47 return new ReferenceTypeImpl(new JavassistEnumDeclaration(ctClazz, typeSolver), in typeUsageFor() 48 typeSolver); in typeUsageFor() 50 return new ReferenceTypeImpl(new JavassistClassDeclaration(ctClazz, typeSolver), in typeUsageFor() 51 typeSolver); in typeUsageFor() 59 …static ResolvedReferenceTypeDeclaration toTypeDeclaration(CtClass ctClazz, TypeSolver typeSolver) { in toTypeDeclaration() argument 61 return new JavassistInterfaceDeclaration(ctClazz, typeSolver); in toTypeDeclaration() [all …]
|
D | JavassistUtils.java | 43 …ss ctClass, String name, List<ResolvedType> argumentsTypes, TypeSolver typeSolver, Context invokat… in getMethodUsage() argument 48 … MethodUsage methodUsage = new MethodUsage(new JavassistMethodDeclaration(method, typeSolver)); in getMethodUsage() 56 …Type = parseTypeParameters(methodSignature.getReturnType().toString(), typeSolver, invokationConte… in getMethodUsage() 74 … = new JavassistClassDeclaration(superClass, typeSolver).solveMethodAsUsage(name, argumentsTypes, … in getMethodUsage() 85 …new JavassistInterfaceDeclaration(interfaze, typeSolver).solveMethodAsUsage(name, argumentsTypes, … in getMethodUsage() 97 …private static List<ResolvedType> parseTypeParameters(String signature, TypeSolver typeSolver, Con… in parseTypeParameters() argument 114 … List<ResolvedType> typeParameters = parseTypeParameters(signature, typeSolver, invokationContext); in parseTypeParameters() 122 … ResolvedType type = new SymbolSolver(typeSolver).solveTypeUsage(signature, invokationContext); in parseTypeParameters() 135 … signatureTypeToType(SignatureAttribute.Type signatureType, TypeSolver typeSolver, ResolvedTypePar… in signatureTypeToType() argument 138 ….stream(classType.getTypeArguments()).map(ta -> typeArgumentToType(ta, typeSolver, typeParametriza… in signatureTypeToType() [all …]
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionClassAdapter.java | 26 private TypeSolver typeSolver; field in ReflectionClassAdapter 29 …public ReflectionClassAdapter(Class<?> clazz, TypeSolver typeSolver, ResolvedReferenceTypeDeclarat… in ReflectionClassAdapter() argument 31 this.typeSolver = typeSolver; in ReflectionClassAdapter() 43 .map((t) -> ReflectionFactory.typeUsageFor(t, typeSolver)) in getSuperClass() 45 …mpl(new ReflectionClassDeclaration(clazz.getSuperclass(), typeSolver), typeParameters, typeSolver); in getSuperClass() 47 …w ReferenceTypeImpl(new ReflectionClassDeclaration(clazz.getSuperclass(), typeSolver), typeSolver); in getSuperClass() 56 .map((t) -> ReflectionFactory.typeUsageFor(t, typeSolver)) in getInterfaces() 58 …s<?>) ((ParameterizedType) superInterface).getRawType(), typeSolver), typeParameters, typeSolver)); in getInterfaces() 60 …ceTypeImpl(new ReflectionInterfaceDeclaration((Class<?>) superInterface, typeSolver), typeSolver)); in getInterfaces() 72 …ject = new ReferenceTypeImpl(new ReflectionClassDeclaration(Object.class, typeSolver), typeSolver); in getAncestors() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/ |
D | JavassistInterfaceDeclarationTest.java | 33 private TypeSolver typeSolver; field in JavassistInterfaceDeclarationTest 38 … typeSolver = new CombinedTypeSolver(new JarTypeSolver(pathToJar), new ReflectionTypeSolver()); in setup() 47 …rfaceDeclaration nodeWithAnnotations = (JavassistInterfaceDeclaration) typeSolver.solveType("com.g… in testIsClass() 53 …rfaceDeclaration nodeWithAnnotations = (JavassistInterfaceDeclaration) typeSolver.solveType("com.g… in testIsInterface() 59 …rfaceDeclaration nodeWithAnnotations = (JavassistInterfaceDeclaration) typeSolver.solveType("com.g… in testIsEnum() 65 …rfaceDeclaration nodeWithAnnotations = (JavassistInterfaceDeclaration) typeSolver.solveType("com.g… in testIsTypeVariable() 71 …rfaceDeclaration nodeWithAnnotations = (JavassistInterfaceDeclaration) typeSolver.solveType("com.g… in testIsType() 77 …rfaceDeclaration nodeWithAnnotations = (JavassistInterfaceDeclaration) typeSolver.solveType("com.g… in testAsType() 83 …rfaceDeclaration nodeWithAnnotations = (JavassistInterfaceDeclaration) typeSolver.solveType("com.g… in testAsClass() 89 …rfaceDeclaration nodeWithAnnotations = (JavassistInterfaceDeclaration) typeSolver.solveType("com.g… in testAsInterface() [all …]
|
D | JavassistEnumDeclarationTest.java | 34 private TypeSolver typeSolver; field in JavassistEnumDeclarationTest 39 … typeSolver = new CombinedTypeSolver(new JarTypeSolver(pathToJar), new ReflectionTypeSolver()); in setup() 48 …ResolvedEnumDeclaration modifier = (ResolvedEnumDeclaration) typeSolver.solveType("com.github.java… in testIsClass() 54 …ResolvedEnumDeclaration modifier = (ResolvedEnumDeclaration) typeSolver.solveType("com.github.java… in testIsInterface() 60 …ResolvedEnumDeclaration modifier = (ResolvedEnumDeclaration) typeSolver.solveType("com.github.java… in testIsEnum() 66 …ResolvedEnumDeclaration modifier = (ResolvedEnumDeclaration) typeSolver.solveType("com.github.java… in testIsTypeVariable() 72 …ResolvedEnumDeclaration modifier = (ResolvedEnumDeclaration) typeSolver.solveType("com.github.java… in testIsType() 78 …ResolvedEnumDeclaration modifier = (ResolvedEnumDeclaration) typeSolver.solveType("com.github.java… in testAsType() 84 …ResolvedEnumDeclaration modifier = (ResolvedEnumDeclaration) typeSolver.solveType("com.github.java… in testAsClass() 90 …ResolvedEnumDeclaration modifier = (ResolvedEnumDeclaration) typeSolver.solveType("com.github.java… in testAsInterface() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionEnumDeclarationTest.java | 28 private TypeSolver typeSolver = new ReflectionTypeSolver(false); field in ReflectionEnumDeclarationTest 36 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testIsClass() 42 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testIsInterface() 48 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testIsEnum() 54 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testIsTypeVariable() 60 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testIsType() 66 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testAsType() 72 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testAsClass() 78 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testAsInterface() 84 …ReflectionEnumDeclaration modifier = (ReflectionEnumDeclaration) typeSolver.solveType("com.github.… in testAsEnum() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserInterfaceDeclarationTest.java | 33 private TypeSolver typeSolver; field in JavaParserInterfaceDeclarationTest 42 typeSolver = combinedTypeSolverNewCode; in setup() 51 …faceDeclaration nodeWithAnnotations = (JavaParserInterfaceDeclaration) typeSolver.solveType("com.g… in testIsClass() 57 …faceDeclaration nodeWithAnnotations = (JavaParserInterfaceDeclaration) typeSolver.solveType("com.g… in testIsInterface() 63 …faceDeclaration nodeWithAnnotations = (JavaParserInterfaceDeclaration) typeSolver.solveType("com.g… in testIsEnum() 69 …faceDeclaration nodeWithAnnotations = (JavaParserInterfaceDeclaration) typeSolver.solveType("com.g… in testIsTypeVariable() 75 …faceDeclaration nodeWithAnnotations = (JavaParserInterfaceDeclaration) typeSolver.solveType("com.g… in testIsType() 81 …faceDeclaration nodeWithAnnotations = (JavaParserInterfaceDeclaration) typeSolver.solveType("com.g… in testAsType() 87 …faceDeclaration nodeWithAnnotations = (JavaParserInterfaceDeclaration) typeSolver.solveType("com.g… in testAsClass() 93 …faceDeclaration nodeWithAnnotations = (JavaParserInterfaceDeclaration) typeSolver.solveType("com.g… in testAsInterface() [all …]
|
D | JavaParserEnumDeclarationTest.java | 33 private TypeSolver typeSolver; field in JavaParserEnumDeclarationTest 42 typeSolver = combinedTypeSolverNewCode; in setup() 51 …JavaParserEnumDeclaration modifier = (JavaParserEnumDeclaration) typeSolver.solveType("com.github.… in testIsClass() 57 …JavaParserEnumDeclaration modifier = (JavaParserEnumDeclaration) typeSolver.solveType("com.github.… in testIsInterface() 63 …JavaParserEnumDeclaration modifier = (JavaParserEnumDeclaration) typeSolver.solveType("com.github.… in testIsEnum() 69 …JavaParserEnumDeclaration modifier = (JavaParserEnumDeclaration) typeSolver.solveType("com.github.… in testIsTypeVariable() 75 …JavaParserEnumDeclaration modifier = (JavaParserEnumDeclaration) typeSolver.solveType("com.github.… in testIsType() 81 …JavaParserEnumDeclaration modifier = (JavaParserEnumDeclaration) typeSolver.solveType("com.github.… in testAsType() 87 …JavaParserEnumDeclaration modifier = (JavaParserEnumDeclaration) typeSolver.solveType("com.github.… in testAsClass() 93 …JavaParserEnumDeclaration modifier = (JavaParserEnumDeclaration) typeSolver.solveType("com.github.… in testAsInterface() [all …]
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserInterfaceDeclaration.java | 47 private TypeSolver typeSolver; field in JavaParserInterfaceDeclaration 51 …ic JavaParserInterfaceDeclaration(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver) { in JavaParserInterfaceDeclaration() argument 56 this.typeSolver = typeSolver; in JavaParserInterfaceDeclaration() 57 this.javaParserTypeAdapter = new JavaParserTypeAdapter<>(wrappedNode, typeSolver); in JavaParserInterfaceDeclaration() 65 …avaParserMethodDeclaration((com.github.javaparser.ast.body.MethodDeclaration) member, typeSolver)); in getDeclaredMethods() 72 return JavaParserFactory.getContext(wrappedNode, typeSolver); in getContext() 109 …if (solveType(annotationExpr.getName().getId(), typeSolver).getCorrespondingDeclaration().getQuali… in hasDirectlyAnnotation() 126 …nceTypeImpl(solveType(t.getName().getId(), typeSolver).getCorrespondingDeclaration().asInterface()… in getInterfacesExtended() 165 …aration ancestor = (ResolvedReferenceTypeDeclaration) new SymbolSolver(typeSolver).solveType(type); in canBeAssignedTo() 174 …aration ancestor = (ResolvedReferenceTypeDeclaration) new SymbolSolver(typeSolver).solveType(type); in canBeAssignedTo() [all …]
|