Home
last modified time | relevance | path

Searched refs:ResolvedReferenceTypeDeclaration (Results 1 – 25 of 85) sorted by relevance

1234

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/
DNameLogicDisambiguationTest.java7 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
128 ResolvedReferenceTypeDeclaration mockedC = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameToSingleStaticImportDeclaration()
144 ResolvedReferenceTypeDeclaration mockedC = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameToStaticImportOnDemandDeclaration()
180 ResolvedReferenceTypeDeclaration mockedC = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameInQualifiedNameRequalifiedAsPackageNameLeadingToType()
212 ResolvedReferenceTypeDeclaration mockedC = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameInQualifiedNameRequalifiedAsTypeNameLeadingToField()
230 ResolvedReferenceTypeDeclaration mockedC = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameInQualifiedNameRequalifiedAsTypeNameLeadingToMethod()
248 ResolvedReferenceTypeDeclaration mockedD = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameInQualifiedNameRequalifiedAsTypeNameLeadingToInternalType()
250 ResolvedReferenceTypeDeclaration mockedC = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameInQualifiedNameRequalifiedAsTypeNameLeadingToInternalType()
265 ResolvedReferenceTypeDeclaration mockedC = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameInQualifiedNameRequalifiedAsTypeNameLeadingToCompilationError()
280 ResolvedReferenceTypeDeclaration mockedC = mock(ResolvedReferenceTypeDeclaration.class); in ambiguousNameInQualifiedNameRequalifiedAsExpressionName()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/
DClassLoaderTypeSolver.java19 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
57 public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name) { in tryToSolveType()
76 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in tryToSolveType()
81 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in tryToSolveType()
85 … SymbolReference<ResolvedReferenceTypeDeclaration> parent = tryToSolveType(parentName); in tryToSolveType()
87 … Optional<ResolvedReferenceTypeDeclaration> innerClass = parent.getCorrespondingDeclaration() in tryToSolveType()
91 … .orElseGet(() -> SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class)); in tryToSolveType()
93 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in tryToSolveType()
98 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in tryToSolveType()
DCombinedTypeSolver.java24 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
87 public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name) { in tryToSolveType()
90 SymbolReference<ResolvedReferenceTypeDeclaration> res = ts.tryToSolveType(name); in tryToSolveType()
100 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in tryToSolveType()
104 public ResolvedReferenceTypeDeclaration solveType(String name) throws UnsolvedSymbolException { in solveType()
105 SymbolReference<ResolvedReferenceTypeDeclaration> res = tryToSolveType(name); in solveType()
DMemoryTypeSolver.java19 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
34 private Map<String, ResolvedReferenceTypeDeclaration> declarationMap = new HashMap<>();
73 public void addDeclaration(String name, ResolvedReferenceTypeDeclaration typeDeclaration) { in addDeclaration()
78 public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name) { in tryToSolveType()
82 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in tryToSolveType()
DJarTypeSolver.java18 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
133 public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name) { in tryToSolveType()
139 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in tryToSolveType()
147 public ResolvedReferenceTypeDeclaration solveType(String name) throws UnsolvedSymbolException { in solveType()
148 SymbolReference<ResolvedReferenceTypeDeclaration> ref = tryToSolveType(name); in solveType()
DJavaParserTypeSolver.java22 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
60 …private final Cache<String, SymbolReference<ResolvedReferenceTypeDeclaration>> foundTypes = CacheB…
166 public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name) {
171 … SymbolReference<ResolvedReferenceTypeDeclaration> result = tryToSolveTypeUncached(name);
182 private SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveTypeUncached(String name) {
226 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class);
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionTypeParameter.java20 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
90 if (container instanceof ResolvedReferenceTypeDeclaration) { in getContainerQualifiedName()
91 return ((ResolvedReferenceTypeDeclaration) container).getQualifiedName(); in getContainerQualifiedName()
99 if (container instanceof ResolvedReferenceTypeDeclaration) { in getContainerId()
100 return ((ResolvedReferenceTypeDeclaration) container).getId(); in getContainerId()
124 public Optional<ResolvedReferenceTypeDeclaration> containerType() { in containerType()
125 if (container instanceof ResolvedReferenceTypeDeclaration) { in containerType()
126 return Optional.of((ResolvedReferenceTypeDeclaration) container); in containerType()
DReflectionEnumConstantDeclaration.java4 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
32ResolvedReferenceTypeDeclaration typeDeclaration = new ReflectionEnumDeclaration(enumClass, typeSo… in getType()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/
DResolvedTypeDeclaration.java45 default Set<ResolvedReferenceTypeDeclaration> internalTypes() { in internalTypes()
53 default ResolvedReferenceTypeDeclaration getInternalType(String name) { in getInternalType()
54 Optional<ResolvedReferenceTypeDeclaration> type = in getInternalType()
71 Optional<ResolvedReferenceTypeDeclaration> containerType(); in containerType()
167 default ResolvedReferenceTypeDeclaration asReferenceType() { in asReferenceType()
DResolvedReferenceTypeDeclaration.java40 public interface ResolvedReferenceTypeDeclaration extends ResolvedTypeDeclaration, interface
44 default ResolvedReferenceTypeDeclaration asReferenceType() { in asReferenceType()
224 default boolean canBeAssignedTo(ResolvedReferenceTypeDeclaration other) { in canBeAssignedTo()
232 boolean isAssignableBy(ResolvedReferenceTypeDeclaration other); in isAssignableBy()
/external/javaparser/javaparser-symbol-solver-model/src/main/java/com/github/javaparser/symbolsolver/model/resolution/
DTypeSolver.java20 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
55 SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name); in tryToSolveType()
60 default ResolvedReferenceTypeDeclaration solveType(String name) throws UnsolvedSymbolException { in solveType()
61 SymbolReference<ResolvedReferenceTypeDeclaration> ref = tryToSolveType(name); in solveType()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserTypeParameter.java88 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy()
95 if (container instanceof ResolvedReferenceTypeDeclaration) { in getContainerQualifiedName()
96 return ((ResolvedReferenceTypeDeclaration) container).getQualifiedName(); in getContainerQualifiedName()
107 if (container instanceof ResolvedReferenceTypeDeclaration) { in getContainerId()
108 return ((ResolvedReferenceTypeDeclaration) container).getId(); in getContainerId()
126ResolvedReferenceTypeDeclaration typeDeclaration = JavaParserFacade.get(typeSolver).getTypeDeclara… in getContainer()
216 public Optional<ResolvedReferenceTypeDeclaration> containerType() { in containerType()
218 if (container instanceof ResolvedReferenceTypeDeclaration) { in containerType()
219 return Optional.of((ResolvedReferenceTypeDeclaration) container); in containerType()
DJavaParserInterfaceDeclaration.java145 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy()
155 public boolean canBeAssignedTo(ResolvedReferenceTypeDeclaration other) { in canBeAssignedTo()
162ResolvedReferenceTypeDeclaration ancestor = (ResolvedReferenceTypeDeclaration) new SymbolSolver(ty… in canBeAssignedTo()
171ResolvedReferenceTypeDeclaration ancestor = (ResolvedReferenceTypeDeclaration) new SymbolSolver(ty… in canBeAssignedTo()
325 public Set<ResolvedReferenceTypeDeclaration> internalTypes() { in internalTypes()
326 Set<ResolvedReferenceTypeDeclaration> res = new HashSet<>(); in internalTypes()
336 public Optional<ResolvedReferenceTypeDeclaration> containerType() { in containerType()
DJavaParserClassDeclaration.java223 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy()
233 public boolean canBeAssignedTo(ResolvedReferenceTypeDeclaration other) { in canBeAssignedTo()
251ResolvedReferenceTypeDeclaration ancestor = (ResolvedReferenceTypeDeclaration) new SymbolSolver(ty… in canBeAssignedTo()
388 public Set<ResolvedReferenceTypeDeclaration> internalTypes() { in internalTypes()
389 Set<ResolvedReferenceTypeDeclaration> res = new HashSet<>(); in internalTypes()
399 public Optional<ResolvedReferenceTypeDeclaration> containerType() { in containerType()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeImpl.java22 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
49 …public static ResolvedReferenceType undeterminedParameters(ResolvedReferenceTypeDeclaration typeDe… in undeterminedParameters()
56 …protected ResolvedReferenceType create(ResolvedReferenceTypeDeclaration typeDeclaration, List<Reso… in create()
61 protected ResolvedReferenceType create(ResolvedReferenceTypeDeclaration typeDeclaration) { in create()
65 …public ReferenceTypeImpl(ResolvedReferenceTypeDeclaration typeDeclaration, TypeSolver typeSolver) { in ReferenceTypeImpl()
70 …public ReferenceTypeImpl(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> type… in ReferenceTypeImpl()
105 …SymbolReference<ResolvedReferenceTypeDeclaration> type = typeSolver.tryToSolveType(other.asPrimiti… in isAssignableBy()
202ResolvedReferenceTypeDeclaration objectType = typeSolver.solveType(Object.class.getCanonicalName()… in getAllAncestors()
224ResolvedReferenceTypeDeclaration objectType = typeSolver.solveType(Object.class.getCanonicalName()… in getDirectAncestors()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistTypeParameter.java77 if (this.container instanceof ResolvedReferenceTypeDeclaration) { in getContainerQualifiedName()
78 return ((ResolvedReferenceTypeDeclaration) this.container).getQualifiedName(); in getContainerQualifiedName()
109 public Optional<ResolvedReferenceTypeDeclaration> containerType() { in containerType()
110 if (container instanceof ResolvedReferenceTypeDeclaration) { in containerType()
111 return Optional.of((ResolvedReferenceTypeDeclaration) container); in containerType()
DJavassistEnumDeclaration.java152 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy()
173 public Optional<ResolvedReferenceTypeDeclaration> containerType() { in containerType()
210 public Set<ResolvedReferenceTypeDeclaration> internalTypes() { in internalTypes()
223 public ResolvedReferenceTypeDeclaration getInternalType(String name) { in getInternalType()
228 Optional<ResolvedReferenceTypeDeclaration> type = in getInternalType()
266 ResolvedReferenceTypeDeclaration fqnTypeDeclaration = typeSolver.solveType(fqn); in solveSymbolForFQN()
DJavassistInterfaceDeclaration.java156 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy()
242 ResolvedReferenceTypeDeclaration fqnTypeDeclaration = typeSolver.solveType(fqn); in solveSymbolForFQN()
251 public Optional<ResolvedReferenceTypeDeclaration> containerType() { in containerType()
256 public Set<ResolvedReferenceTypeDeclaration> internalTypes() { in internalTypes()
269 public ResolvedReferenceTypeDeclaration getInternalType(String name) { in getInternalType()
274 Optional<ResolvedReferenceTypeDeclaration> type = in getInternalType()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/
DResolvedReferenceType.java28 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
53 protected ResolvedReferenceTypeDeclaration typeDeclaration;
60 public ResolvedReferenceType(ResolvedReferenceTypeDeclaration typeDeclaration) { in ResolvedReferenceType()
64 …public ResolvedReferenceType(ResolvedReferenceTypeDeclaration typeDeclaration, List<ResolvedType> … in ResolvedReferenceType()
298 public final ResolvedReferenceTypeDeclaration getTypeDeclaration() { in getTypeDeclaration()
417 …protected abstract ResolvedReferenceType create(ResolvedReferenceTypeDeclaration typeDeclaration, … in create()
419 …protected ResolvedReferenceType create(ResolvedReferenceTypeDeclaration typeDeclaration, ResolvedT… in create()
425 … protected abstract ResolvedReferenceType create(ResolvedReferenceTypeDeclaration typeDeclaration); in create()
495 … private static List<ResolvedType> deriveParams(ResolvedReferenceTypeDeclaration typeDeclaration) { in deriveParams()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DFindingAllFieldsTest.java22 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
40ResolvedReferenceTypeDeclaration typeDeclaration = JavaParserFacade.get(new ReflectionTypeSolver()… in findAllInheritedFields()
50ResolvedReferenceTypeDeclaration typeDeclaration = JavaParserFacade.get(new ReflectionTypeSolver()… in findAllInheritedFieldsAndGenerics()
DIssue1364Test.java13 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
52 public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name) { in setup()
58 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in setup()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DAnonymousClassesResolutionTest.java7 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
30 ResolvedReferenceTypeDeclaration cd = mock(ResolvedReferenceTypeDeclaration.class); in configureSymbolSolver()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typesolvers/
DJarTypeSolverTest.java20 import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration;
65ResolvedReferenceTypeDeclaration b = jarTypeSolver2.tryToSolveType("foo.zum.B").getCorrespondingDe… in dependenciesBetweenJarsTriggeringReferencesThatCannotBeResolved()
81ResolvedReferenceTypeDeclaration b = combinedTypeSolver.tryToSolveType("foo.zum.B").getCorrespondi… in dependenciesBetweenJarsTriggeringReferencesThatCanBeResolved()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DJavaParserTypeDeclarationAdapter.java31 private ResolvedReferenceTypeDeclaration typeDeclaration;
34 ResolvedReferenceTypeDeclaration typeDeclaration, in JavaParserTypeDeclarationAdapter()
81 … ResolvedTypeDeclaration checkAncestorsForType(String name, ResolvedReferenceTypeDeclaration decla… in checkAncestorsForType()
86 if (internalTypeDeclaration instanceof ResolvedReferenceTypeDeclaration) { in checkAncestorsForType()
87ResolvedReferenceTypeDeclaration resolvedReferenceTypeDeclaration = internalTypeDeclaration.asRefe… in checkAncestorsForType()
DCompilationUnitContext.java161 … SymbolReference<ResolvedReferenceTypeDeclaration> ref = typeSolver.tryToSolveType(qName); in solveType()
168 … SymbolReference<ResolvedReferenceTypeDeclaration> ref = typeSolver.tryToSolveType(qName); in solveType()
195 … SymbolReference<ResolvedReferenceTypeDeclaration> ref = typeSolver.tryToSolveType(qName); in solveType()
208 … SymbolReference<ResolvedReferenceTypeDeclaration> ref = typeSolver.tryToSolveType(qName); in solveType()
217 …SymbolReference<ResolvedReferenceTypeDeclaration> ref = typeSolver.tryToSolveType("java.lang." + n… in solveType()
226 return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); in solveType()
308 ResolvedReferenceTypeDeclaration typeDeclaration = typeSolver.solveType(typeName); in fieldsExposedToChild()

1234