Home
last modified time | relevance | path

Searched refs:ResolvedTypeDeclaration (Results 1 – 25 of 43) sorted by relevance

12

/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DCompilationUnitContext.java77 SymbolReference<ResolvedTypeDeclaration> type = this.solveType(typeName); in solveSymbol()
91 ResolvedTypeDeclaration importedType = typeSolver.solveType(qName); in solveSymbol()
104 ResolvedTypeDeclaration importedType = typeSolver.solveType(typeName); in solveSymbol()
116 public SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
140 SymbolReference<ResolvedTypeDeclaration> ref = null; in solveType()
141 SymbolReference<ResolvedTypeDeclaration> outerMostRef = in solveType()
163 return SymbolReference.adapt(ref, ResolvedTypeDeclaration.class); in solveType()
170 return SymbolReference.adapt(ref, ResolvedTypeDeclaration.class); in solveType()
197 return SymbolReference.adapt(ref, ResolvedTypeDeclaration.class); in solveType()
199 return SymbolReference.unsolved(ResolvedTypeDeclaration.class); in solveType()
[all …]
DAnonymousClassDeclarationContext.java8 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
98 public SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
103 Optional<SymbolReference<ResolvedTypeDeclaration>> exactMatch = in solveType()
116 Optional<SymbolReference<ResolvedTypeDeclaration>> recursiveMatch = in solveType()
130 Optional<SymbolReference<ResolvedTypeDeclaration>> typeArgumentsMatch = in solveType()
157 …for (ResolvedTypeDeclaration internalTypeDeclaration : ancestor.getTypeDeclaration().internalTypes… in solveType()
DJavaParserTypeDeclarationAdapter.java42 public SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
72 ResolvedTypeDeclaration type = checkAncestorsForType(name, this.typeDeclaration); in solveType()
81 …private ResolvedTypeDeclaration checkAncestorsForType(String name, ResolvedReferenceTypeDeclaratio… in checkAncestorsForType()
84 …for (ResolvedTypeDeclaration internalTypeDeclaration : ancestor.getTypeDeclaration().internalTypes… in checkAncestorsForType()
101ResolvedTypeDeclaration ancestorDeclaration = checkAncestorsForType(name, ancestor.getTypeDeclarat… in checkAncestorsForType()
DObjectCreationContext.java24 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
47 public SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
53 … for (ResolvedTypeDeclaration it : referenceType.getTypeDeclaration().internalTypes()) { in solveType()
DContextHelper.java20 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
37 …public static Optional<MethodUsage> solveMethodAsUsage(ResolvedTypeDeclaration typeDeclaration, St… in solveMethodAsUsage()
DEnumDeclarationContext.java23 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
66 public SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
DAbstractMethodLikeDeclarationContext.java8 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
72 public final SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DSymbolSolver.java25 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
76 …public SymbolReference<? extends ResolvedTypeDeclaration> solveType(String name, Context context) { in solveType()
80 public SymbolReference<? extends ResolvedTypeDeclaration> solveType(String name, Node node) { in solveType()
96 public ResolvedTypeDeclaration solveType(com.github.javaparser.ast.type.Type type) { in solveType()
102 …SymbolReference<ResolvedTypeDeclaration> ref = JavaParserFactory.getContext(type, typeSolver).solv… in solveType()
127 …lReference<? extends ResolvedValueDeclaration> solveSymbolInType(ResolvedTypeDeclaration typeDecla… in solveSymbolInType()
165 …public SymbolReference<ResolvedTypeDeclaration> solveTypeInType(ResolvedTypeDeclaration typeDeclar… in solveTypeInType()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DClassOrInterfaceDeclarationContextResolutionTest.java24 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
239 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("A"); in solveTypeRefToItself()
249 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("Foo"); in solveTypeRefToUnexisting()
259 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("Object"); in solveTypeRefToObject()
269 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("java.lang.Object"); in solveTypeRefToJavaLangObject()
279 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("B"); in solveTypeRefToInternalClass()
289 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("E"); in solveTypeRefToInternalEnum()
299 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("C"); in solveTypeRefToInternalOfInternalClass()
309 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("Super"); in solveTypeRefToAnotherClassInFile()
319 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("A.B"); in solveTypeRefToQualifiedInternalClass()
[all …]
DMethodContextResolutionTest.java22 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
55 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("LocalClass"); in solveTypeRefToLocalClass()
DCompilationUnitContextResolutionTest.java23 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
179 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("OtherClassInSamePackage"); in solveTypeInSamePackage()
190 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("Assert"); in solveTypeImported()
200 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType("org.junit.Assume"); in solveTypeNotImported()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/
DThisExpr.java35 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
50 public class ThisExpr extends Expression implements Resolvable<ResolvedTypeDeclaration> {
167 public ResolvedTypeDeclaration resolve() { in resolve()
168 return getSymbolResolver().resolveDeclaration(this, ResolvedTypeDeclaration.class); in resolve()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/
DResolvedTypeDeclaration.java36 public interface ResolvedTypeDeclaration extends ResolvedDeclaration { interface
135 default ResolvedTypeDeclaration asType() { in asType()
DResolvedFieldDeclaration.java49 ResolvedTypeDeclaration declaringType(); in declaringType()
DResolvedDeclaration.java99 default ResolvedTypeDeclaration asType() { in asType()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue232Test.java5 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
24 …SymbolReference<ResolvedTypeDeclaration> reference = context.solveType("OfPrimitive<Double, Double… in issue232()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionFieldDeclaration.java21 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
75 public ResolvedTypeDeclaration declaringType() { in declaringType()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistFieldDeclaration.java21 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
89 public ResolvedTypeDeclaration declaringType() { in declaringType()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserFieldDeclaration.java25 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
99 public ResolvedTypeDeclaration declaringType() { in declaringType()
DJavaParserTypeAdapter.java15 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
90 public SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
132 return SymbolReference.unsolved(ResolvedTypeDeclaration.class); in solveType()
DJavaParserClassDeclaration.java130 public ResolvedTypeDeclaration declaringType() { in getAllFields()
272 public SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
276 SymbolReference<ResolvedTypeDeclaration> ref = javaParserTypeAdapter.solveType(name); in solveType()
413 SymbolReference<ResolvedTypeDeclaration> ref = solveType(className); in toReferenceType()
DJavaParserInterfaceDeclaration.java214 public ResolvedTypeDeclaration declaringType() { in getAllFields()
240 public SymbolReference<ResolvedTypeDeclaration> solveType(String name) { in solveType()
244 SymbolReference<ResolvedTypeDeclaration> ref = javaParserTypeAdapter.solveType(name); in solveType()
355 SymbolReference<? extends ResolvedTypeDeclaration> ref = null; in toReferenceType()
DAstResolutionUtils.java28 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
89 …SymbolReference<ResolvedTypeDeclaration> ref = JavaParserFactory.getContext(annotationExpr, typeSo… in hasDirectlyAnnotation()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DJavaParserFacade.java147 ResolvedTypeDeclaration typeDecl = null; in solve()
154 …SymbolReference<ResolvedTypeDeclaration> sr = JavaParserFactory.getContext(classNode, typeSolver).… in solve()
169 public SymbolReference<ResolvedTypeDeclaration> solve(ThisExpr node) { in solve()
251 …SymbolReference<ResolvedTypeDeclaration> typeDeclarationSymbolReference = context.solveType(annota… in solve()
296 …SymbolReference<ResolvedTypeDeclaration> typeDeclaration = JavaParserFactory.getContext(node, type… in getType()
366 …SymbolReference<ResolvedTypeDeclaration> typeDeclarationSymbolReference = JavaParserFactory.getCon… in toMethodUsage()
507 SymbolReference<ResolvedTypeDeclaration> ref = context.solveType(name); in convertToUsage()
511 ResolvedTypeDeclaration typeDeclaration = ref.getCorrespondingDeclaration(); in convertToUsage()
DTypeExtractor.java18 import com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration;
178 …SymbolReference<ResolvedTypeDeclaration> typeAccessedStatically = JavaParserFactory.getContext(nod… in visit()
187 … SymbolReference<ResolvedTypeDeclaration> solve = facade.solve((ThisExpr) node.getScope()); in visit()
190ResolvedTypeDeclaration correspondingDeclaration = solve.getCorrespondingDeclaration(); in visit()
316ResolvedTypeDeclaration typeOfNode = facade.getTypeDeclaration(facade.findContainingTypeDecl(node)… in visit()
374 …SymbolReference<ResolvedTypeDeclaration> type = JavaParserFactory.getContext(nameExpr, typeSolver)… in visit()

12