Home
last modified time | relevance | path

Searched refs:isAssignableBy (Results 1 – 25 of 107) sorted by relevance

12345

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/
DPrimitiveTypeTest.java171 … assertEquals(true, ResolvedPrimitiveType.BOOLEAN.isAssignableBy(ResolvedPrimitiveType.BOOLEAN)); in testIsAssignableByOtherPrimitiveTypes()
172 … assertEquals(false, ResolvedPrimitiveType.BOOLEAN.isAssignableBy(ResolvedPrimitiveType.CHAR)); in testIsAssignableByOtherPrimitiveTypes()
173 … assertEquals(false, ResolvedPrimitiveType.BOOLEAN.isAssignableBy(ResolvedPrimitiveType.BYTE)); in testIsAssignableByOtherPrimitiveTypes()
174 … assertEquals(false, ResolvedPrimitiveType.BOOLEAN.isAssignableBy(ResolvedPrimitiveType.SHORT)); in testIsAssignableByOtherPrimitiveTypes()
175 … assertEquals(false, ResolvedPrimitiveType.BOOLEAN.isAssignableBy(ResolvedPrimitiveType.INT)); in testIsAssignableByOtherPrimitiveTypes()
176 … assertEquals(false, ResolvedPrimitiveType.BOOLEAN.isAssignableBy(ResolvedPrimitiveType.LONG)); in testIsAssignableByOtherPrimitiveTypes()
177 … assertEquals(false, ResolvedPrimitiveType.BOOLEAN.isAssignableBy(ResolvedPrimitiveType.FLOAT)); in testIsAssignableByOtherPrimitiveTypes()
178 … assertEquals(false, ResolvedPrimitiveType.BOOLEAN.isAssignableBy(ResolvedPrimitiveType.DOUBLE)); in testIsAssignableByOtherPrimitiveTypes()
180 … assertEquals(false, ResolvedPrimitiveType.CHAR.isAssignableBy(ResolvedPrimitiveType.BOOLEAN)); in testIsAssignableByOtherPrimitiveTypes()
181 assertEquals(true, ResolvedPrimitiveType.CHAR.isAssignableBy(ResolvedPrimitiveType.CHAR)); in testIsAssignableByOtherPrimitiveTypes()
[all …]
DArrayTypeTest.java160 assertEquals(false, arrayOfBooleans.isAssignableBy(OBJECT)); in testIsAssignableBy()
161 assertEquals(false, arrayOfBooleans.isAssignableBy(STRING)); in testIsAssignableBy()
162 assertEquals(false, arrayOfBooleans.isAssignableBy(ResolvedPrimitiveType.BOOLEAN)); in testIsAssignableBy()
163 assertEquals(false, arrayOfBooleans.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBy()
165 assertEquals(true, arrayOfBooleans.isAssignableBy(arrayOfBooleans)); in testIsAssignableBy()
166 assertEquals(false, arrayOfBooleans.isAssignableBy(arrayOfStrings)); in testIsAssignableBy()
167 assertEquals(false, arrayOfBooleans.isAssignableBy(arrayOfListOfA)); in testIsAssignableBy()
168 assertEquals(false, arrayOfBooleans.isAssignableBy(arrayOfListOfStrings)); in testIsAssignableBy()
169 assertEquals(false, arrayOfStrings.isAssignableBy(arrayOfBooleans)); in testIsAssignableBy()
170 assertEquals(true, arrayOfStrings.isAssignableBy(arrayOfStrings)); in testIsAssignableBy()
[all …]
DReferenceTypeTest.java185 assertEquals(true, object.isAssignableBy(string)); in testIsAssignableBySimple()
186 assertEquals(false, string.isAssignableBy(object)); in testIsAssignableBySimple()
187 assertEquals(false, listOfStrings.isAssignableBy(listOfA)); in testIsAssignableBySimple()
188 assertEquals(false, listOfA.isAssignableBy(listOfStrings)); in testIsAssignableBySimple()
190 assertEquals(false, object.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBySimple()
191 assertEquals(false, string.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBySimple()
192 assertEquals(false, listOfStrings.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBySimple()
193 assertEquals(false, listOfA.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBySimple()
195 assertEquals(true, object.isAssignableBy(NullType.INSTANCE)); in testIsAssignableBySimple()
196 assertEquals(true, string.isAssignableBy(NullType.INSTANCE)); in testIsAssignableBySimple()
[all …]
DNullTypeTest.java115 assertEquals(false, NullType.INSTANCE.isAssignableBy(NullType.INSTANCE)); in testIsAssignableBy()
121 assertEquals(false, NullType.INSTANCE.isAssignableBy(OBJECT)); in testIsAssignableBy()
127 assertEquals(false, NullType.INSTANCE.isAssignableBy(STRING)); in testIsAssignableBy()
133 assertEquals(false, NullType.INSTANCE.isAssignableBy(ResolvedPrimitiveType.BOOLEAN)); in testIsAssignableBy()
139 assertEquals(false, NullType.INSTANCE.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBy()
DVoidTypeTest.java115 assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(NullType.INSTANCE)); in testIsAssignableBy()
121 assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(OBJECT)); in testIsAssignableBy()
127 assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(STRING)); in testIsAssignableBy()
133 … assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(ResolvedPrimitiveType.BOOLEAN)); in testIsAssignableBy()
139 … assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBy()
DWildcardUsageTest.java201 assertEquals(false, unbounded.isAssignableBy(object)); in testIsAssignableBySimple()
202 assertEquals(true, object.isAssignableBy(unbounded)); in testIsAssignableBySimple()
203 assertEquals(false, string.isAssignableBy(unbounded)); in testIsAssignableBySimple()
204 assertEquals(true, superFoo.isAssignableBy(foo)); in testIsAssignableBySimple()
205 assertEquals(false, foo.isAssignableBy(superFoo)); in testIsAssignableBySimple()
206 assertEquals(false, extendsFoo.isAssignableBy(foo)); in testIsAssignableBySimple()
207 assertEquals(true, foo.isAssignableBy(extendsFoo)); in testIsAssignableBySimple()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/resolution/
DConstructorResolutionLogic.java71 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
75 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
77 … && expectedType.isAssignableBy(actualType.asArrayType().getComponentType())) { in isApplicable()
108 expectedType.isAssignableBy(actualType) || (constructor.getParam(i).isVariadic() in isApplicable()
109 && new ArrayType(expectedType).isAssignableBy(actualType)); in isApplicable()
122 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
128 if (new ArrayType(expectedType).isAssignableBy(actualType)) { in isApplicable()
210 if (tdB.isAssignableBy(tdA) && !tdA.isAssignableBy(tdB)) { in isMoreSpecific()
214 if (tdA.isAssignableBy(tdB) && !tdB.isAssignableBy(tdA)) { in isMoreSpecific()
DMethodResolutionLogic.java79 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
83 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
84 …if (actualType.isArray() && expectedType.isAssignableBy(actualType.asArrayType().getComponentType(… in isApplicable()
111 boolean isAssignableWithoutSubstitution = expectedType.isAssignableBy(actualType) || in isApplicable()
112 … (method.getParam(i).isVariadic() && new ArrayType(expectedType).isAssignableBy(actualType)); in isApplicable()
126 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
132 if (new ArrayType(expectedType).isAssignableBy(actualType)) { in isApplicable()
198 if (matchedParameter.isAssignableBy(actualParam)) { in isAssignableMatchTypeParametersMatchingQName()
200 } else if (actualParam.isAssignableBy(matchedParameter)) { in isAssignableMatchTypeParametersMatchingQName()
332 if (!expectedType.isAssignableBy(actualType) in isApplicable()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DConstructorResolutionLogic.java71 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
75 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
77 … && expectedType.isAssignableBy(actualType.asArrayType().getComponentType())) { in isApplicable()
108 expectedType.isAssignableBy(actualType) || (constructor.getParam(i).isVariadic() in isApplicable()
109 && new ResolvedArrayType(expectedType).isAssignableBy(actualType)); in isApplicable()
122 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
128 if (new ResolvedArrayType(expectedType).isAssignableBy(actualType)) { in isApplicable()
210 if (tdB.isAssignableBy(tdA) && !tdA.isAssignableBy(tdB)) { in isMoreSpecific()
214 if (tdA.isAssignableBy(tdB) && !tdB.isAssignableBy(tdA)) { in isMoreSpecific()
DMethodResolutionLogic.java74 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
78 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
79 …if (actualType.isArray() && expectedType.isAssignableBy(actualType.asArrayType().getComponentType(… in isApplicable()
106 boolean isAssignableWithoutSubstitution = expectedType.isAssignableBy(actualType) || in isApplicable()
107 …method.getParam(i).isVariadic() && new ResolvedArrayType(expectedType).isAssignableBy(actualType)); in isApplicable()
121 if (!expectedType.isAssignableBy(actualType)) { in isApplicable()
127 if (new ResolvedArrayType(expectedType).isAssignableBy(actualType)) { in isApplicable()
216 if (matchedParameter.isAssignableBy(type)) { in matchTypeVariable()
218 } else if (type.isAssignableBy(matchedParameter)) { in matchTypeVariable()
324 if (!expectedType.isAssignableBy(actualType) in isApplicable()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_resolution_ConstructorResolutionLogic.txt18 …Line 71) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.type…
21 …Line 75) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.type…
23 …ctedType.isAssignableBy(actualType.asArrayType().getComponentType()) ==> com.github.javaparser.sym…
49 …Line 108) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
52 …rrayType(expectedType).isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
63 …Line 122) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
68 …rrayType(expectedType).isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
104 …Line 210) tdB.isAssignableBy(tdA) ==> com.github.javaparser.symbolsolver.model.typesystem.Type.isA…
105 …Line 210) tdA.isAssignableBy(tdB) ==> com.github.javaparser.symbolsolver.model.typesystem.Type.isA…
106 …Line 214) tdA.isAssignableBy(tdB) ==> com.github.javaparser.symbolsolver.model.typesystem.Type.isA…
[all …]
Dcom_github_javaparser_symbolsolver_model_typesystem_ReferenceTypeImpl.txt36 …Line 115) this.isAssignableBy(bound.getType()) ==> com.github.javaparser.symbolsolver.model.typesy…
39 … 122) isAssignableBy(other.asConstraintType().getBound()) ==> com.github.javaparser.symbolsolver.m…
48 … 127) isAssignableBy(other.asWildcard().getBoundedType()) ==> com.github.javaparser.symbolsolver.m…
Dcom_github_javaparser_symbolsolver_resolution_MethodResolutionLogic.txt20 …Line 79) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.type…
23 …Line 83) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.type…
25 …ctedType.isAssignableBy(actualType.asArrayType().getComponentType()) ==> com.github.javaparser.sym…
51 …Line 111) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
54 …rrayType(expectedType).isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
65 …Line 126) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
70 …rrayType(expectedType).isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
117 …ne 198) matchedParameter.isAssignableBy(actualParam) ==> com.github.javaparser.symbolsolver.model.…
118 …Line 200) actualParam.isAssignableBy(matchedParameter) ==> com.github.javaparser.symbolsolver.mode…
226 …Line 332) expectedType.isAssignableBy(actualType) ==> com.github.javaparser.symbolsolver.model.typ…
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeImpl.java78 public boolean isAssignableBy(Type other) { in isAssignableBy() method in ReferenceTypeImpl
115 if (this.isAssignableBy(bound.getType())) { in isAssignableBy()
122 return isAssignableBy(other.asConstraintType().getBound()); in isAssignableBy()
127 return isAssignableBy(other.asWildcard().getBoundedType()); in isAssignableBy()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-model/
Dcom_github_javaparser_symbolsolver_model_typesystem_LambdaConstraintType.txt2 …Line 35) bound.isAssignableBy(other) ==> com.github.javaparser.symbolsolver.model.typesystem.Type.
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/typesystem/
DLambdaConstraintType.java34 public boolean isAssignableBy(Type other) { in isAssignableBy() method in LambdaConstraintType
35 return bound.isAssignableBy(other); in isAssignableBy()
DArrayType.java86 public boolean isAssignableBy(Type other) { in isAssignableBy() method in ArrayType
91 return baseType.isAssignableBy(other.asArrayType().getComponentType()); in isAssignableBy()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionEnumDeclaration.java131 public boolean isAssignableBy(Type type) { in isAssignableBy() method in ReflectionEnumDeclaration
132 return reflectionClassAdapter.isAssignableBy(type); in isAssignableBy()
136 public boolean isAssignableBy(ReferenceTypeDeclaration other) { in isAssignableBy() method in ReflectionEnumDeclaration
137 return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); in isAssignableBy()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/
DResolvedLambdaConstraintType.java55 public boolean isAssignableBy(ResolvedType other) { in isAssignableBy() method in ResolvedLambdaConstraintType
56 return bound.isAssignableBy(other); in isAssignableBy()
DResolvedArrayType.java91 public boolean isAssignableBy(ResolvedType other) { in isAssignableBy() method in ResolvedArrayType
96 return baseType.isAssignableBy(other.asArrayType().getComponentType()); in isAssignableBy()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionEnumDeclaration.java139 public boolean isAssignableBy(ResolvedType type) { in isAssignableBy() method in ReflectionEnumDeclaration
140 return reflectionClassAdapter.isAssignableBy(type); in isAssignableBy()
144 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy() method in ReflectionEnumDeclaration
145 return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); in isAssignableBy()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserTypeVariableDeclaration.java50 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy() method in JavaParserTypeVariableDeclaration
51 return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); in isAssignableBy()
89 public boolean isAssignableBy(ResolvedType type) { in isAssignableBy() method in JavaParserTypeVariableDeclaration
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserTypeVariableDeclaration.java53 public boolean isAssignableBy(ReferenceTypeDeclaration other) { in isAssignableBy() method in JavaParserTypeVariableDeclaration
54 return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); in isAssignableBy()
92 public boolean isAssignableBy(Type type) { in isAssignableBy() method in JavaParserTypeVariableDeclaration
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/declarations/
DReferenceTypeDeclaration.java168 boolean isAssignableBy(Type type); in isAssignableBy() method
175 return other.isAssignableBy(this); in canBeAssignedTo()
182 boolean isAssignableBy(ReferenceTypeDeclaration other); in isAssignableBy() method
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeImpl.java88 public boolean isAssignableBy(ResolvedType other) { in isAssignableBy() method in ReferenceTypeImpl
125 if (this.isAssignableBy(bound.getType())) { in isAssignableBy()
132 return isAssignableBy(other.asConstraintType().getBound()); in isAssignableBy()
137 return isAssignableBy(other.asWildcard().getBoundedType()); in isAssignableBy()

12345