/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ |
D | PrimitiveTypeTest.java | 171 … 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 …]
|
D | ArrayTypeTest.java | 161 assertEquals(false, arrayOfBooleans.isAssignableBy(OBJECT)); in testIsAssignableBy() 162 assertEquals(false, arrayOfBooleans.isAssignableBy(STRING)); in testIsAssignableBy() 163 assertEquals(false, arrayOfBooleans.isAssignableBy(ResolvedPrimitiveType.BOOLEAN)); in testIsAssignableBy() 164 assertEquals(false, arrayOfBooleans.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBy() 166 assertEquals(true, arrayOfBooleans.isAssignableBy(arrayOfBooleans)); in testIsAssignableBy() 167 assertEquals(false, arrayOfBooleans.isAssignableBy(arrayOfStrings)); in testIsAssignableBy() 168 assertEquals(false, arrayOfBooleans.isAssignableBy(arrayOfListOfA)); in testIsAssignableBy() 169 assertEquals(false, arrayOfBooleans.isAssignableBy(arrayOfListOfStrings)); in testIsAssignableBy() 170 assertEquals(false, arrayOfStrings.isAssignableBy(arrayOfBooleans)); in testIsAssignableBy() 171 assertEquals(true, arrayOfStrings.isAssignableBy(arrayOfStrings)); in testIsAssignableBy() [all …]
|
D | ReferenceTypeTest.java | 177 assertEquals(true, object.isAssignableBy(string)); in testIsAssignableBySimple() 178 assertEquals(false, string.isAssignableBy(object)); in testIsAssignableBySimple() 179 assertEquals(false, listOfStrings.isAssignableBy(listOfA)); in testIsAssignableBySimple() 180 assertEquals(false, listOfA.isAssignableBy(listOfStrings)); in testIsAssignableBySimple() 182 assertEquals(false, object.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBySimple() 183 assertEquals(false, string.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBySimple() 184 assertEquals(false, listOfStrings.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBySimple() 185 assertEquals(false, listOfA.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBySimple() 187 assertEquals(true, object.isAssignableBy(NullType.INSTANCE)); in testIsAssignableBySimple() 188 assertEquals(true, string.isAssignableBy(NullType.INSTANCE)); in testIsAssignableBySimple() [all …]
|
D | VoidTypeTest.java | 114 assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(NullType.INSTANCE)); in testIsAssignableBy() 120 assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(OBJECT)); in testIsAssignableBy() 126 assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(STRING)); in testIsAssignableBy() 132 … assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(ResolvedPrimitiveType.BOOLEAN)); in testIsAssignableBy() 138 … assertEquals(false, ResolvedVoidType.INSTANCE.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBy()
|
D | NullTypeTest.java | 114 assertEquals(false, NullType.INSTANCE.isAssignableBy(NullType.INSTANCE)); in testIsAssignableBy() 120 assertEquals(false, NullType.INSTANCE.isAssignableBy(OBJECT)); in testIsAssignableBy() 126 assertEquals(false, NullType.INSTANCE.isAssignableBy(STRING)); in testIsAssignableBy() 132 assertEquals(false, NullType.INSTANCE.isAssignableBy(ResolvedPrimitiveType.BOOLEAN)); in testIsAssignableBy() 138 assertEquals(false, NullType.INSTANCE.isAssignableBy(ResolvedVoidType.INSTANCE)); in testIsAssignableBy()
|
D | WildcardUsageTest.java | 200 assertEquals(false, unbounded.isAssignableBy(object)); in testIsAssignableBySimple() 201 assertEquals(true, object.isAssignableBy(unbounded)); in testIsAssignableBySimple() 202 assertEquals(false, string.isAssignableBy(unbounded)); in testIsAssignableBySimple() 203 assertEquals(true, superFoo.isAssignableBy(foo)); in testIsAssignableBySimple() 204 assertEquals(false, foo.isAssignableBy(superFoo)); in testIsAssignableBySimple() 205 assertEquals(false, extendsFoo.isAssignableBy(foo)); in testIsAssignableBySimple() 206 assertEquals(true, foo.isAssignableBy(extendsFoo)); in testIsAssignableBySimple()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/ |
D | ConstructorResolutionLogic.java | 71 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()
|
D | MethodResolutionLogic.java | 82 if (!expectedType.isAssignableBy(actualType)) { in isApplicable() 86 if (!expectedType.isAssignableBy(actualType)) { in isApplicable() 87 …if (actualType.isArray() && expectedType.isAssignableBy(actualType.asArrayType().getComponentType(… in isApplicable() 114 boolean isAssignableWithoutSubstitution = expectedType.isAssignableBy(actualType) || in isApplicable() 115 …method.getParam(i).isVariadic() && new ResolvedArrayType(expectedType).isAssignableBy(actualType)); in isApplicable() 129 if (!expectedType.isAssignableBy(actualType)) { in isApplicable() 135 if (new ResolvedArrayType(expectedType).isAssignableBy(actualType)) { in isApplicable() 224 if (matchedParameter.isAssignableBy(type)) { in matchTypeVariable() 226 } else if (type.isAssignableBy(matchedParameter)) { in matchTypeVariable() 344 if (!expectedType.isAssignableBy(actualType) in isApplicable() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_resolution_ConstructorResolutionLogic.txt | 18 …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 …]
|
D | com_github_javaparser_symbolsolver_resolution_MethodResolutionLogic.txt | 20 …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 …]
|
D | com_github_javaparser_symbolsolver_model_typesystem_ReferenceTypeImpl.txt | 36 …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…
|
D | com_github_javaparser_symbolsolver_reflectionmodel_ReflectionEnumDeclaration.txt | 23 …lectionClassAdapter.isAssignableBy(type) ==> com.github.javaparser.symbolsolver.reflectionmodel.Re… 24 …isAssignableBy(new ReferenceTypeImpl(other, typeSolver)) ==> com.github.javaparser.symbolsolver.re…
|
D | com_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserTypeVariableDeclaration.txt | 1 …isAssignableBy(new ReferenceTypeImpl(other, typeSolver)) ==> com.github.javaparser.symbolsolver.ja…
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-model/ |
D | com_github_javaparser_symbolsolver_model_typesystem_LambdaConstraintType.txt | 2 …Line 35) bound.isAssignableBy(other) ==> com.github.javaparser.symbolsolver.model.typesystem.Type.…
|
D | com_github_javaparser_symbolsolver_model_typesystem_Wildcard.txt | 8 …Line 132) boundedType.isAssignableBy(other) ==> com.github.javaparser.symbolsolver.model.typesyste…
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionEnumDeclaration.java | 133 public boolean isAssignableBy(ResolvedType type) { in isAssignableBy() method in ReflectionEnumDeclaration 134 return reflectionClassAdapter.isAssignableBy(type); in isAssignableBy() 138 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy() method in ReflectionEnumDeclaration 139 return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); in isAssignableBy()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/ |
D | ResolvedLambdaConstraintType.java | 55 public boolean isAssignableBy(ResolvedType other) { in isAssignableBy() method in ResolvedLambdaConstraintType 56 return bound.isAssignableBy(other); in isAssignableBy()
|
D | ResolvedUnionType.java | 66 public boolean isAssignableBy(ResolvedType other) { in isAssignableBy() method in ResolvedUnionType 67 return elements.stream().allMatch(e -> e.isAssignableBy(other)); in isAssignableBy()
|
D | ResolvedArrayType.java | 91 public boolean isAssignableBy(ResolvedType other) { in isAssignableBy() method in ResolvedArrayType 96 return baseType.isAssignableBy(other.asArrayType().getComponentType()); in isAssignableBy()
|
D | ResolvedIntersectionType.java | 65 public boolean isAssignableBy(ResolvedType other) { in isAssignableBy() method in ResolvedIntersectionType 66 return elements.stream().allMatch(e -> e.isAssignableBy(other)); in isAssignableBy()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/ |
D | ReferenceTypeImpl.java | 87 public boolean isAssignableBy(ResolvedType other) { in isAssignableBy() method in ReferenceTypeImpl 124 if (this.isAssignableBy(bound.getType())) { in isAssignableBy() 131 return isAssignableBy(other.asConstraintType().getBound()); in isAssignableBy() 136 return isAssignableBy(other.asWildcard().getBoundedType()); in isAssignableBy()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserTypeVariableDeclaration.java | 53 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy() method in JavaParserTypeVariableDeclaration 54 return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); in isAssignableBy() 92 public boolean isAssignableBy(ResolvedType type) { in isAssignableBy() method in JavaParserTypeVariableDeclaration
|
D | JavaParserEnumDeclaration.java | 156 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy() method in JavaParserEnumDeclaration 157 return javaParserTypeAdapter.isAssignableBy(other); in isAssignableBy() 161 public boolean isAssignableBy(ResolvedType type) { in isAssignableBy() method in JavaParserEnumDeclaration 162 return javaParserTypeAdapter.isAssignableBy(type); in isAssignableBy()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/ |
D | ResolvedReferenceTypeDeclaration.java | 189 boolean isAssignableBy(ResolvedType type); in isAssignableBy() method 196 return other.isAssignableBy(this); in canBeAssignedTo() 203 boolean isAssignableBy(ResolvedReferenceTypeDeclaration other); in isAssignableBy() method
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/ |
D | JavassistClassDeclaration.java | 87 public boolean isAssignableBy(ResolvedReferenceTypeDeclaration other) { in isAssignableBy() method in JavassistClassDeclaration 88 return isAssignableBy(new ReferenceTypeImpl(other, typeSolver)); in isAssignableBy() 227 public boolean isAssignableBy(ResolvedType type) { in isAssignableBy() method in JavassistClassDeclaration 242 … && new JavassistClassDeclaration(this.ctClass.getSuperclass(), typeSolver).isAssignableBy(type)) { in isAssignableBy() 246 if (new JavassistInterfaceDeclaration(interfaze, typeSolver).isAssignableBy(type)) { in isAssignableBy()
|