Home
last modified time | relevance | path

Searched refs:fromType (Results 1 – 25 of 1113) sorted by relevance

12345678910>>...45

/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/
H A DPrimitiveTypeConverter.java33 Class<?> fromType = fromValue.getClass(); in cast() local
35 if ( Byte.class.equals(fromType) && toType.equals(byte.class) ) in cast()
38 if ( Byte.class.equals(fromType) && toType.equals(short.class) ) in cast()
41 if ( Byte.class.equals(fromType) && toType.equals(char.class) ) in cast()
44 if ( Byte.class.equals(fromType) && toType.equals(int.class) ) in cast()
47 if ( Byte.class.equals(fromType) && toType.equals(long.class) ) in cast()
50 if ( Byte.class.equals(fromType) && toType.equals(float.class) ) in cast()
56 if ( Short.class.equals(fromType) && toType.equals(byte.class) ) in cast()
62 if ( Short.class.equals(fromType) && toType.equals(char.class) ) in cast()
65 if ( Short.class.equals(fromType) && toType.equals(int.class) ) in cast()
[all …]
H A DTestTypes.java150 Class<?> fromType = from.getType(); in convertArgument() local
152 if ( fromType.equals(toType) ) in convertArgument()
162 if ( ! fromType.isPrimitive() ) in convert()
169 if ( fromType.equals(toType) ) in convert()
195 return dryRun ? toType.isAssignableFrom(fromType) in convert()
201 if ( fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
204 if ( tt.equals(fromType) ) in convert()
217 if ( fromType.isPrimitive() && ! toType.isPrimitive() ) { in convert()
219 : toType.cast(fromType.cast(fromValue)); in convert()
227 if ( ! fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
[all …]
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/
H A DPrimitiveTypeConverter.java33 Class<?> fromType = fromValue.getClass(); in cast() local
35 if ( Byte.class.equals(fromType) && toType.equals(byte.class) ) in cast()
38 if ( Byte.class.equals(fromType) && toType.equals(short.class) ) in cast()
41 if ( Byte.class.equals(fromType) && toType.equals(char.class) ) in cast()
44 if ( Byte.class.equals(fromType) && toType.equals(int.class) ) in cast()
47 if ( Byte.class.equals(fromType) && toType.equals(long.class) ) in cast()
50 if ( Byte.class.equals(fromType) && toType.equals(float.class) ) in cast()
56 if ( Short.class.equals(fromType) && toType.equals(byte.class) ) in cast()
62 if ( Short.class.equals(fromType) && toType.equals(char.class) ) in cast()
65 if ( Short.class.equals(fromType) && toType.equals(int.class) ) in cast()
[all …]
H A DTestTypes.java150 Class<?> fromType = from.getType(); in convertArgument() local
152 if ( fromType.equals(toType) ) in convertArgument()
162 if ( ! fromType.isPrimitive() ) in convert()
169 if ( fromType.equals(toType) ) in convert()
195 return dryRun ? toType.isAssignableFrom(fromType) in convert()
201 if ( fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
204 if ( tt.equals(fromType) ) in convert()
217 if ( fromType.isPrimitive() && ! toType.isPrimitive() ) { in convert()
219 : toType.cast(fromType.cast(fromValue)); in convert()
227 if ( ! fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
[all …]
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/
H A DPrimitiveTypeConverter.java33 Class<?> fromType = fromValue.getClass(); in cast() local
35 if ( Byte.class.equals(fromType) && toType.equals(byte.class) ) in cast()
38 if ( Byte.class.equals(fromType) && toType.equals(short.class) ) in cast()
41 if ( Byte.class.equals(fromType) && toType.equals(char.class) ) in cast()
44 if ( Byte.class.equals(fromType) && toType.equals(int.class) ) in cast()
47 if ( Byte.class.equals(fromType) && toType.equals(long.class) ) in cast()
50 if ( Byte.class.equals(fromType) && toType.equals(float.class) ) in cast()
56 if ( Short.class.equals(fromType) && toType.equals(byte.class) ) in cast()
62 if ( Short.class.equals(fromType) && toType.equals(char.class) ) in cast()
65 if ( Short.class.equals(fromType) && toType.equals(int.class) ) in cast()
[all …]
H A DTestTypes.java150 Class<?> fromType = from.getType(); in convertArgument() local
152 if ( fromType.equals(toType) ) in convertArgument()
162 if ( ! fromType.isPrimitive() ) in convert()
169 if ( fromType.equals(toType) ) in convert()
195 return dryRun ? toType.isAssignableFrom(fromType) in convert()
201 if ( fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
204 if ( tt.equals(fromType) ) in convert()
217 if ( fromType.isPrimitive() && ! toType.isPrimitive() ) { in convert()
219 : toType.cast(fromType.cast(fromValue)); in convert()
227 if ( ! fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
[all …]
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/
H A DPrimitiveTypeConverter.java33 Class<?> fromType = fromValue.getClass(); in cast() local
35 if ( Byte.class.equals(fromType) && toType.equals(byte.class) ) in cast()
38 if ( Byte.class.equals(fromType) && toType.equals(short.class) ) in cast()
41 if ( Byte.class.equals(fromType) && toType.equals(char.class) ) in cast()
44 if ( Byte.class.equals(fromType) && toType.equals(int.class) ) in cast()
47 if ( Byte.class.equals(fromType) && toType.equals(long.class) ) in cast()
50 if ( Byte.class.equals(fromType) && toType.equals(float.class) ) in cast()
56 if ( Short.class.equals(fromType) && toType.equals(byte.class) ) in cast()
62 if ( Short.class.equals(fromType) && toType.equals(char.class) ) in cast()
65 if ( Short.class.equals(fromType) && toType.equals(int.class) ) in cast()
[all …]
H A DTestTypes.java150 Class<?> fromType = from.getType(); in convertArgument() local
152 if ( fromType.equals(toType) ) in convertArgument()
162 if ( ! fromType.isPrimitive() ) in convert()
169 if ( fromType.equals(toType) ) in convert()
195 return dryRun ? toType.isAssignableFrom(fromType) in convert()
201 if ( fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
204 if ( tt.equals(fromType) ) in convert()
217 if ( fromType.isPrimitive() && ! toType.isPrimitive() ) { in convert()
219 : toType.cast(fromType.cast(fromValue)); in convert()
227 if ( ! fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
[all …]
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/
H A DPrimitiveTypeConverter.java33 Class<?> fromType = fromValue.getClass(); in cast() local
35 if ( Byte.class.equals(fromType) && toType.equals(byte.class) ) in cast()
38 if ( Byte.class.equals(fromType) && toType.equals(short.class) ) in cast()
41 if ( Byte.class.equals(fromType) && toType.equals(char.class) ) in cast()
44 if ( Byte.class.equals(fromType) && toType.equals(int.class) ) in cast()
47 if ( Byte.class.equals(fromType) && toType.equals(long.class) ) in cast()
50 if ( Byte.class.equals(fromType) && toType.equals(float.class) ) in cast()
56 if ( Short.class.equals(fromType) && toType.equals(byte.class) ) in cast()
62 if ( Short.class.equals(fromType) && toType.equals(char.class) ) in cast()
65 if ( Short.class.equals(fromType) && toType.equals(int.class) ) in cast()
[all …]
H A DTestTypes.java150 Class<?> fromType = from.getType(); in convertArgument() local
152 if ( fromType.equals(toType) ) in convertArgument()
162 if ( ! fromType.isPrimitive() ) in convert()
169 if ( fromType.equals(toType) ) in convert()
195 return dryRun ? toType.isAssignableFrom(fromType) in convert()
201 if ( fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
204 if ( tt.equals(fromType) ) in convert()
217 if ( fromType.isPrimitive() && ! toType.isPrimitive() ) { in convert()
219 : toType.cast(fromType.cast(fromValue)); in convert()
227 if ( ! fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
[all …]
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/
H A DPrimitiveTypeConverter.java33 Class<?> fromType = fromValue.getClass(); in cast() local
35 if ( Byte.class.equals(fromType) && toType.equals(byte.class) ) in cast()
38 if ( Byte.class.equals(fromType) && toType.equals(short.class) ) in cast()
41 if ( Byte.class.equals(fromType) && toType.equals(char.class) ) in cast()
44 if ( Byte.class.equals(fromType) && toType.equals(int.class) ) in cast()
47 if ( Byte.class.equals(fromType) && toType.equals(long.class) ) in cast()
50 if ( Byte.class.equals(fromType) && toType.equals(float.class) ) in cast()
56 if ( Short.class.equals(fromType) && toType.equals(byte.class) ) in cast()
62 if ( Short.class.equals(fromType) && toType.equals(char.class) ) in cast()
65 if ( Short.class.equals(fromType) && toType.equals(int.class) ) in cast()
[all …]
H A DTestTypes.java150 Class<?> fromType = from.getType(); in convertArgument() local
152 if ( fromType.equals(toType) ) in convertArgument()
162 if ( ! fromType.isPrimitive() ) in convert()
169 if ( fromType.equals(toType) ) in convert()
195 return dryRun ? toType.isAssignableFrom(fromType) in convert()
201 if ( fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
204 if ( tt.equals(fromType) ) in convert()
217 if ( fromType.isPrimitive() && ! toType.isPrimitive() ) { in convert()
219 : toType.cast(fromType.cast(fromValue)); in convert()
227 if ( ! fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
[all …]
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/
H A DPrimitiveTypeConverter.java33 Class<?> fromType = fromValue.getClass(); in cast() local
35 if ( Byte.class.equals(fromType) && toType.equals(byte.class) ) in cast()
38 if ( Byte.class.equals(fromType) && toType.equals(short.class) ) in cast()
41 if ( Byte.class.equals(fromType) && toType.equals(char.class) ) in cast()
44 if ( Byte.class.equals(fromType) && toType.equals(int.class) ) in cast()
47 if ( Byte.class.equals(fromType) && toType.equals(long.class) ) in cast()
50 if ( Byte.class.equals(fromType) && toType.equals(float.class) ) in cast()
56 if ( Short.class.equals(fromType) && toType.equals(byte.class) ) in cast()
62 if ( Short.class.equals(fromType) && toType.equals(char.class) ) in cast()
65 if ( Short.class.equals(fromType) && toType.equals(int.class) ) in cast()
[all …]
H A DTestTypes.java150 Class<?> fromType = from.getType(); in convertArgument() local
152 if ( fromType.equals(toType) ) in convertArgument()
162 if ( ! fromType.isPrimitive() ) in convert()
169 if ( fromType.equals(toType) ) in convert()
195 return dryRun ? toType.isAssignableFrom(fromType) in convert()
201 if ( fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
204 if ( tt.equals(fromType) ) in convert()
217 if ( fromType.isPrimitive() && ! toType.isPrimitive() ) { in convert()
219 : toType.cast(fromType.cast(fromValue)); in convert()
227 if ( ! fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
[all …]
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/share/
H A DPrimitiveTypeConverter.java33 Class<?> fromType = fromValue.getClass(); in cast() local
35 if ( Byte.class.equals(fromType) && toType.equals(byte.class) ) in cast()
38 if ( Byte.class.equals(fromType) && toType.equals(short.class) ) in cast()
41 if ( Byte.class.equals(fromType) && toType.equals(char.class) ) in cast()
44 if ( Byte.class.equals(fromType) && toType.equals(int.class) ) in cast()
47 if ( Byte.class.equals(fromType) && toType.equals(long.class) ) in cast()
50 if ( Byte.class.equals(fromType) && toType.equals(float.class) ) in cast()
56 if ( Short.class.equals(fromType) && toType.equals(byte.class) ) in cast()
62 if ( Short.class.equals(fromType) && toType.equals(char.class) ) in cast()
65 if ( Short.class.equals(fromType) && toType.equals(int.class) ) in cast()
[all …]
H A DTestTypes.java150 Class<?> fromType = from.getType(); in convertArgument() local
152 if ( fromType.equals(toType) ) in convertArgument()
162 if ( ! fromType.isPrimitive() ) in convert()
169 if ( fromType.equals(toType) ) in convert()
195 return dryRun ? toType.isAssignableFrom(fromType) in convert()
201 if ( fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
204 if ( tt.equals(fromType) ) in convert()
217 if ( fromType.isPrimitive() && ! toType.isPrimitive() ) { in convert()
219 : toType.cast(fromType.cast(fromValue)); in convert()
227 if ( ! fromType.isPrimitive() && toType.isPrimitive() ) { in convert()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.ui/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/
H A DUpdateStrategy.java444 if (!fromType.equals(Byte.class) && !fromType.equals(byte.class)) { in addNumberToByteConverters()
446 fromType, null) : fromType.getName(); in addNumberToByteConverters()
468 fromType, null) : fromType.getName(); in addNumberToShortConverters()
492 fromType, null) : fromType.getName(); in addNumberToIntegerConverters()
516 fromType, null) : fromType.getName(); in addNumberToLongConverters()
538 fromType, null) : fromType.getName(); in addNumberToFloatConverters()
561 fromType, null) : fromType.getName(); in addNumberToDoubleConverters()
586 fromType, null) : fromType.getName(); in addNumberToBigIntegerConverters()
607 fromType, null) : fromType.getName(); in addNumberToBigDecimalConverters()
713 this.fromType = fromType; in DefaultConverter()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.ui/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/conversion/
H A DAbstractNumberToStringConverter.java34 private final Class<?> fromType; field in AbstractNumberToStringConverter
74 super(fromType, String.class); in AbstractNumberToStringConverter()
77 this.fromType = Objects.requireNonNull(fromType); in AbstractNumberToStringConverter()
79 if (Integer.class.equals(fromType) || Integer.TYPE.equals(fromType) || Long.class.equals(fromType) in AbstractNumberToStringConverter()
80 || Long.TYPE.equals(fromType) || Short.class.equals(fromType) || Short.TYPE.equals(fromType) in AbstractNumberToStringConverter()
81 || Byte.class.equals(fromType) || Byte.TYPE.equals(fromType)) { in AbstractNumberToStringConverter()
83 …} else if (Float.class.equals(fromType) || Float.TYPE.equals(fromType) || Double.class.equals(from… in AbstractNumberToStringConverter()
84 || Double.TYPE.equals(fromType)) { in AbstractNumberToStringConverter()
86 } else if (BigInteger.class.equals(fromType)) { in AbstractNumberToStringConverter()
88 } else if (BigDecimal.class.equals(fromType)) { in AbstractNumberToStringConverter()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data.Linq/
H A DDbConvert.cs30 Type fromType = value.GetType(); in ChangeType()
31 if (toType.IsAssignableFrom(fromType)) in ChangeType()
35 if (fromType == typeof(byte[])) { in ChangeType()
38 else if (fromType == typeof(Guid)) { in ChangeType()
52 if (fromType == typeof(Binary)) { in ChangeType()
68 else if (fromType == typeof(byte[])) { in ChangeType()
81 else if (fromType == typeof(Binary)) { in ChangeType()
93 if (fromType == typeof(string)) { in ChangeType()
101 else if (fromType.IsEnum) { in ChangeType()
114 if (fromType == typeof(string)) { in ChangeType()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data.Entity/System/Data/Metadata/
H A DTypeSemantics.cs80 return IsStructurallyEqual(fromType, toType) || in IsStructurallyEqualOrPromotableTo()
81 IsPromotableTo(fromType, toType); in IsStructurallyEqualOrPromotableTo()
141 if (toType.EdmType.EdmEquals(fromType.EdmType)) in IsPromotableTo()
148 return IsPrimitiveTypePromotableTo(fromType, in IsPromotableTo()
167 return IsPromotableTo((RowType)fromType.EdmType, in IsPromotableTo()
217 Debug.Assert(fromType != null, "fromType != null"); in IsCastAllowed()
224 …(Helper.IsEnumType(fromType.EdmType) && Helper.IsEnumType(toType.EdmType) && fromType.EdmType.Equa… in IsCastAllowed()
305 …return (IsStructurallyEqual(fromType, toType) || IsSubTypeOf(fromType, toType) || IsSubTypeOf(toTy… in IsValidPolymorphicCast()
1035 Debug.Assert(fromType != null && toType != null); in CompareTypes()
1038 if (object.ReferenceEquals(fromType, toType)) in CompareTypes()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Web/UI/
H A DObjectConverter.cs44 Type fromType = value.GetType(); in ConvertValue()
46 if (toType.IsAssignableFrom(fromType)) { in ConvertValue()
51 if (typeof(string).IsAssignableFrom(fromType)) { in ConvertValue()
77 if (typeof(int).IsAssignableFrom(fromType)) { in ConvertValue()
80 else if (typeof(bool).IsAssignableFrom(fromType)) { in ConvertValue()
107 else if (typeof(DateTime).IsAssignableFrom(fromType)) { in ConvertValue()
110 else if (typeof(Decimal).IsAssignableFrom(fromType)) { in ConvertValue()
113 else if (typeof(Double).IsAssignableFrom(fromType)) { in ConvertValue()
116 else if (typeof(Single).IsAssignableFrom(fromType)) { in ConvertValue()
119 else if (typeof(Int16).IsAssignableFrom(fromType)) { in ConvertValue()
[all …]
/dports/games/keeperrl/keeperrl-alpha23/
H A Dcollective_config.cpp553 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
555 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
557 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
559 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
561 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
563 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
567 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
570 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
573 Workshops::Item::fromType(ItemType::Potion{ in getWorkshops()
587 Workshops::Item::fromType(ItemType::Ring{LastingEffect::POISON_RESISTANT}, 10, in getWorkshops()
[all …]
/dports/lang/bsh/beanshell-2.1.0/src/bsh/
H A DTypes.java372 toType, fromType, null/*fromValue*/, in isBshAssignable()
457 Class fromType = in castObject() local
540 if ( fromType == Primitive.class ) in castObject()
557 if ( fromType == Void.TYPE || fromType == null in castObject()
558 || fromType.isPrimitive() ) in castObject()
597 if ( fromType == Void.TYPE || fromType == null in castObject()
598 || fromType.isPrimitive() ) in castObject()
602 && fromType != Void.TYPE && fromType != null ) in castObject()
613 && fromType != Void.TYPE && fromType != null ) in castObject()
630 if ( toType.isAssignableFrom( fromType ) ) in castObject()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.ui/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/
H A DCustomBeanUpdateValueStrategy.java35 public IConverter<?, ?> createConverter(Object fromType, Object toType) { in createConverter() argument
36 if (fromType instanceof CustomBeanModelType) { in createConverter()
38 CustomBeanModelType<S> customBeanModelType = (CustomBeanModelType<S>) fromType; in createConverter()
39 fromType = customBeanModelType.getType(); in createConverter()
46 return super.createConverter(fromType, toType); in createConverter()
78 public Boolean isAssignableFromTo(Object fromType, Object toType) { in isAssignableFromTo() argument
79 if (fromType instanceof CustomBeanModelType) { in isAssignableFromTo()
80 fromType = ((CustomBeanModelType<?>) fromType).getType(); in isAssignableFromTo()
85 return super.isAssignableFromTo(fromType, toType); in isAssignableFromTo()
/dports/math/cvc4/CVC4-1.7/test/unit/util/
H A Ddatatype_black.h404 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairIntReal), TypeNode::fromType(pairRe… in testParametricDatatype()
405 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairRealInt), TypeNode::fromType(pairRe… in testParametricDatatype()
406 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairIntInt), TypeNode::fromType(pairRea… in testParametricDatatype()
407 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairRealReal), TypeNode::fromType(pairR… in testParametricDatatype()
408 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairIntReal), TypeNode::fromType(pairRe… in testParametricDatatype()
410 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairIntInt), TypeNode::fromType(pairRea… in testParametricDatatype()
413 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairRealInt), TypeNode::fromType(pairIn… in testParametricDatatype()
414 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairIntInt), TypeNode::fromType(pairInt… in testParametricDatatype()
415 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairRealReal), TypeNode::fromType(pairI… in testParametricDatatype()
416 …TS_ASSERT(TypeNode::leastCommonTypeNode(TypeNode::fromType(pairIntReal), TypeNode::fromType(pairIn… in testParametricDatatype()
[all …]

12345678910>>...45