Home
last modified time | relevance | path

Searched refs:TypeReference (Results 1 – 25 of 193) sorted by relevance

12345678

/external/ow2-asm/asm/src/test/java/org/objectweb/asm/
DTypeReferenceTest.java43 TypeReference typeReference = TypeReference.newTypeReference(TypeReference.FIELD); in testNewTypeReference()
45 assertEquals(TypeReference.FIELD, typeReference.getSort()); in testNewTypeReference()
46 assertEquals(TypeReference.FIELD << 24, typeReference.getValue()); in testNewTypeReference()
51 TypeReference typeReference = in testNewTypeParameterReference()
52 TypeReference.newTypeParameterReference(TypeReference.CLASS_TYPE_PARAMETER, 3); in testNewTypeParameterReference()
54 assertEquals(TypeReference.CLASS_TYPE_PARAMETER, typeReference.getSort()); in testNewTypeParameterReference()
60 TypeReference typeReference = in testNewTypeParameterBoundReference()
61 TypeReference.newTypeParameterBoundReference(TypeReference.CLASS_TYPE_PARAMETER, 3, 7); in testNewTypeParameterBoundReference()
63 assertEquals(TypeReference.CLASS_TYPE_PARAMETER, typeReference.getSort()); in testNewTypeParameterBoundReference()
70 TypeReference typeReference = TypeReference.newSuperTypeReference(-1); in testNewSuperTypeReference()
[all …]
/external/ow2-asm/asm/src/main/java/org/objectweb/asm/
DTypeReference.java39 public class TypeReference { class
193 public TypeReference(final int typeRef) { in TypeReference() method in TypeReference
205 public static TypeReference newTypeReference(final int sort) { in newTypeReference()
206 return new TypeReference(sort << 24); in newTypeReference()
216 public static TypeReference newTypeParameterReference(final int sort, final int paramIndex) { in newTypeParameterReference()
217 return new TypeReference((sort << 24) | (paramIndex << 16)); in newTypeParameterReference()
228 public static TypeReference newTypeParameterBoundReference( in newTypeParameterBoundReference()
230 return new TypeReference((sort << 24) | (paramIndex << 16) | (boundIndex << 8)); in newTypeParameterBoundReference()
241 public static TypeReference newSuperTypeReference(final int itfIndex) { in newSuperTypeReference()
242 return new TypeReference((CLASS_EXTENDS << 24) | ((itfIndex & 0xFFFF) << 8)); in newSuperTypeReference()
[all …]
DClassReader.java2603 if (targetType == TypeReference.LOCAL_VARIABLE in readCode()
2604 || targetType == TypeReference.RESOURCE_VARIABLE) { in readCode()
2631 if (targetType == TypeReference.LOCAL_VARIABLE in readCode()
2632 || targetType == TypeReference.RESOURCE_VARIABLE) { in readCode()
2749 case TypeReference.LOCAL_VARIABLE:
2750 case TypeReference.RESOURCE_VARIABLE:
2764 case TypeReference.CAST:
2765 case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT:
2766 case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT:
2767 case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT:
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/
DNullConversionsForContentTest.java7 import com.fasterxml.jackson.core.type.TypeReference;
49TypeReference<NullContentUndefined<List<String>>> listType = new TypeReference<NullContentUndefine… in testFailOnNullFromDefaults()
83TypeReference<NullContentFail<List<Integer>>> typeRef = new TypeReference<NullContentFail<List<Int… in testFailOnNullWithCollections()
106 MAPPER.readValue(JSON, new TypeReference<NullContentFail<List<String>>>() { }); in testFailOnNullWithCollections()
119 MAPPER.readValue(JSON, new TypeReference<NullContentFail<Object[]>>() { }); in testFailOnNullWithArrays()
128 MAPPER.readValue(JSON, new TypeReference<NullContentFail<String[]>>() { }); in testFailOnNullWithArrays()
142 MAPPER.readValue(JSON, new TypeReference<NullContentFail<boolean[]>>() { }); in testFailOnNullWithPrimitiveArrays()
150 MAPPER.readValue(JSON, new TypeReference<NullContentFail<int[]>>() { }); in testFailOnNullWithPrimitiveArrays()
158 MAPPER.readValue(JSON, new TypeReference<NullContentFail<double[]>>() { }); in testFailOnNullWithPrimitiveArrays()
171 … MAPPER.readValue(MAP_JSON, new TypeReference<NullContentFail<Map<String,String>>>() { }); in testFailOnNullWithMaps()
[all …]
DNullConversionsGenericTest.java8 import com.fasterxml.jackson.core.type.TypeReference;
47 new TypeReference<GeneralEmpty<Point>>() { }); in testNullsToEmptyPojo()
66 GeneralEmpty<Point> result = MAPPER.readerFor(new TypeReference<GeneralEmpty<Point>>() { }) in testEmptyStringToNullToEmptyPojo()
78 new TypeReference<GeneralEmpty<List<String>>>() { }); in testNullsToEmptyCollection()
84 new TypeReference<GeneralEmpty<List<Integer>>>() { }); in testNullsToEmptyCollection()
92 new TypeReference<GeneralEmpty<Map<String,String>>>() { }); in testNullsToEmptyMap()
102 new TypeReference<GeneralEmpty<Object[]>>() { }); in testNullsToEmptyArrays()
107 new TypeReference<GeneralEmpty<String[]>>() { }); in testNullsToEmptyArrays()
112 new TypeReference<GeneralEmpty<int[]>>() { }); in testNullsToEmptyArrays()
117 new TypeReference<GeneralEmpty<double[]>>() { }); in testNullsToEmptyArrays()
[all …]
DNullConversionsForEnumsTest.java8 import com.fasterxml.jackson.core.type.TypeReference;
40 new TypeReference<NullValueAsEmpty<EnumSet<ABC>>>() { }); in testEnumSetAsEmpty()
48 new TypeReference<NullValueAsEmpty<EnumMap<ABC, String>>>() { }); in testEnumMapAsEmpty()
64 new TypeReference<NullContentAsEmpty<EnumMap<ABC, String>>>() { }); in testEnumMapNullsAsEmpty()
80 new TypeReference<NullContentSkip<EnumSet<ABC>>>() { }); in testEnumSetSkipNulls()
88 new TypeReference<NullContentSkip<EnumMap<ABC, String>>>() { }); in testEnumMapSkipNulls()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DMapKeyDeserializationTest.java10 import com.fasterxml.jackson.core.type.TypeReference;
78TypeReference<MapWrapper<Boolean, String>> type = new TypeReference<MapWrapper<Boolean, String>>()… in testBooleanMapKeyDeserialization()
91TypeReference<MapWrapper<Byte, String>> type = new TypeReference<MapWrapper<Byte, String>>() { }; in testByteMapKeyDeserialization()
99TypeReference<MapWrapper<Short, String>> type = new TypeReference<MapWrapper<Short, String>>() { }; in testShortMapKeyDeserialization()
107TypeReference<MapWrapper<Integer, String>> type = new TypeReference<MapWrapper<Integer, String>>()… in testIntegerMapKeyDeserialization()
115TypeReference<MapWrapper<Long, String>> type = new TypeReference<MapWrapper<Long, String>>() { }; in testLongMapKeyDeserialization()
123TypeReference<MapWrapper<Float, String>> type = new TypeReference<MapWrapper<Float, String>>() { }; in testFloatMapKeyDeserialization()
131TypeReference<MapWrapper<Double, String>> type = new TypeReference<MapWrapper<Double, String>>() {… in testDoubleMapKeyDeserialization()
147 new TypeReference<Map<FullName, Double>>() { }); in testDeserializeKeyViaFactory()
162 new TypeReference<MapWrapper<byte[], String>>() { }); in testByteArrayMapKeyDeserialization()
[all …]
DMapRelatedTypesDeserTest.java5 import com.fasterxml.jackson.core.type.TypeReference;
22 new TypeReference<List<Map.Entry<String,Long>>>() { }); in testMapEntrySimpleTypes()
33 new TypeReference<List<Map.Entry<Integer,StringWrapper>>>() { }); in testMapEntryWithStringBean()
47 new TypeReference<List<Map.Entry<Integer,StringWrapper>>>() { }); in testMapEntryFail() method
74 …final TypeReference<Map<String,IntWrapper>> type = new TypeReference<Map<String,IntWrapper>>() { }; in testSingletonMapRoundtrip()
DMapDeserializationTest.java11 import com.fasterxml.jackson.core.type.TypeReference;
172 new TypeReference<Map<String, ObjectWrapper>>() { }); in testGenericMap()
209 (JSON, new TypeReference<HashMap<String,Integer>>() { }); in testExactStringIntMap()
231 (JSON, new TypeReference<HashMap<Integer,Object>>() { }); in testIntBooleanMap()
248 (JSON, new TypeReference<TreeMap<String,String>>() { }); in testExactStringStringMap()
270 (JSON, new TypeReference<Map<String,Integer>>() { }); in testGenericStringIntMap()
302 (JSON, new TypeReference<EnumMap<Key,String>>() { }); in testEnumMap()
324 (JSON, new TypeReference<Map<Key,Key>>() { }); in testMapWithEnums()
367 (JSON, new TypeReference<HashMap<Date,String>>() { }); in testDateMap()
396 (JSON, new TypeReference<HashMap<Calendar,String>>() { }); in testCalendarMap()
[all …]
DEnumMapDeserializationTest.java9 import com.fasterxml.jackson.core.type.TypeReference;
108 new TypeReference<EnumMap<TestEnum,String>>() { }); in testEnumMaps()
118 new TypeReference<EnumMap<LowerCaseEnum,String>>() { }) in testToStringEnumMaps()
202 .readerFor(new TypeReference<EnumMap<TestEnumWithDefault,String>>() { }) in testUnknownKeyAsDefault()
209 .readerFor(new TypeReference<Map<TestEnumWithDefault,String>>() { }) in testUnknownKeyAsDefault()
221 .readerFor(new TypeReference<EnumMap<TestEnumWithDefault,String>>() { }) in testUnknownKeyAsNull()
228 .readerFor(new TypeReference<Map<TestEnumWithDefault,String>>() { }) in testUnknownKeyAsNull()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/reference/
DImmutableTypeReference.java36 import org.jf.dexlib2.iface.reference.TypeReference;
51 public static ImmutableTypeReference of(@Nonnull TypeReference typeReference) { in of()
61 …mutableList<ImmutableTypeReference> immutableListOf(@Nullable List<? extends TypeReference> list) { in immutableListOf()
65 private static final ImmutableConverter<ImmutableTypeReference, TypeReference> CONVERTER =
66 new ImmutableConverter<ImmutableTypeReference, TypeReference>() {
68 protected boolean isImmutable(@Nonnull TypeReference item) {
74 protected ImmutableTypeReference makeImmutable(@Nonnull TypeReference item) {
/external/skia/src/sksl/ir/
DSkSLTypeReference.h30 class TypeReference final : public Expression {
34 TypeReference(const Context& context, Position pos, const Type* value) in TypeReference() function
35 : TypeReference(pos, value, context.fTypes.fInvalid.get()) {} in TypeReference()
38 static std::unique_ptr<TypeReference> Convert(const Context& context,
43 static std::unique_ptr<TypeReference> Make(const Context& context, Position pos,
55 return std::unique_ptr<Expression>(new TypeReference(pos, &this->value(), &this->type())); in clone()
59 TypeReference(Position pos, const Type* value, const Type* type) in TypeReference() function
DSkSLTypeReference.cpp15 std::unique_ptr<TypeReference> TypeReference::Convert(const Context& context, in Convert()
22 return TypeReference::Make(context, pos, type); in Convert()
25 std::unique_ptr<TypeReference> TypeReference::Make(const Context& context, in Make()
29 return std::make_unique<TypeReference>(context, pos, type); in Make()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/merge/
DArrayMergeTest.java8 import com.fasterxml.jackson.core.type.TypeReference;
39 …final JavaType type = MAPPER.getTypeFactory().constructType(new TypeReference<MergedX<Object[]>>()… in testObjectArrayMerging()
64 .readerFor(new TypeReference<MergedX<String[]>>() {}) in testStringArrayMerging()
77 .readerFor(new TypeReference<MergedX<boolean[]>>() {}) in testBooleanArrayMerging()
89 .readerFor(new TypeReference<MergedX<byte[]>>() {}) in testByteArrayMerging()
101 .readerFor(new TypeReference<MergedX<short[]>>() {}) in testShortArrayMerging()
113 .readerFor(new TypeReference<MergedX<char[]>>() {}) in testCharArrayMerging()
122 .readerFor(new TypeReference<MergedX<char[]>>() {}) in testCharArrayMerging()
133 .readerFor(new TypeReference<MergedX<int[]>>() {}) in testIntArrayMerging()
143 .readerFor(new TypeReference<MergedX<int[]>>() {}) in testIntArrayMerging()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/
DTestGenerics.java4 import com.fasterxml.jackson.core.type.TypeReference;
70 new TypeReference<Wrapper<SimpleBean>>() { }); in testGenericWrapper()
87 new TypeReference<Wrapper<SimpleBean>>() { }); in testGenericWrapperWithSingleElementArray()
105 ("{\"value\": true}", new TypeReference<Wrapper<Boolean>>() { }); in testMultipleWrappers()
110 ("{\"value\": \"abc\"}", new TypeReference<Wrapper<String>>() { }); in testMultipleWrappers()
115 ("{\"value\": 7}", new TypeReference<Wrapper<Long>>() { }); in testMultipleWrappers()
127 ("[{\"value\": [true]}]", new TypeReference<Wrapper<Boolean>>() { }); in testMultipleWrappersSingleValueArray()
132 ("[{\"value\": [\"abc\"]}]", new TypeReference<Wrapper<String>>() { }); in testMultipleWrappersSingleValueArray()
137 ("[{\"value\": [7]}]", new TypeReference<Wrapper<Long>>() { }); in testMultipleWrappersSingleValueArray()
149 new TypeReference<Wrapper<SimpleBean>[]>() { }); in testArrayOfGenericWrappers()
[all …]
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/immutable/reference/
DImmutableTypeReference.java36 import com.android.tools.smali.dexlib2.iface.reference.TypeReference;
50 public static ImmutableTypeReference of(@Nonnull TypeReference typeReference) { in of()
60 …mutableList<ImmutableTypeReference> immutableListOf(@Nullable List<? extends TypeReference> list) { in immutableListOf()
64 private static final ImmutableConverter<ImmutableTypeReference, TypeReference> CONVERTER =
65 new ImmutableConverter<ImmutableTypeReference, TypeReference>() {
67 protected boolean isImmutable(@Nonnull TypeReference item) {
73 protected ImmutableTypeReference makeImmutable(@Nonnull TypeReference item) {
/external/ow2-asm/asm-util/src/main/java/org/objectweb/asm/util/
DCheckClassAdapter.java51 import org.objectweb.asm.TypeReference;
490 int sort = new TypeReference(typeRef).getSort(); in visitTypeAnnotation()
491 if (sort != TypeReference.CLASS_TYPE_PARAMETER in visitTypeAnnotation()
492 && sort != TypeReference.CLASS_TYPE_PARAMETER_BOUND in visitTypeAnnotation()
493 && sort != TypeReference.CLASS_EXTENDS) { in visitTypeAnnotation()
928 case TypeReference.CLASS_TYPE_PARAMETER: in checkTypeRef()
929 case TypeReference.METHOD_TYPE_PARAMETER: in checkTypeRef()
930 case TypeReference.METHOD_FORMAL_PARAMETER: in checkTypeRef()
933 case TypeReference.FIELD: in checkTypeRef()
934 case TypeReference.METHOD_RETURN: in checkTypeRef()
[all …]
DCheckMethodAdapter.java48 import org.objectweb.asm.TypeReference;
517 int sort = new TypeReference(typeRef).getSort(); in visitTypeAnnotation()
518 if (sort != TypeReference.METHOD_TYPE_PARAMETER in visitTypeAnnotation()
519 && sort != TypeReference.METHOD_TYPE_PARAMETER_BOUND in visitTypeAnnotation()
520 && sort != TypeReference.METHOD_RETURN in visitTypeAnnotation()
521 && sort != TypeReference.METHOD_RECEIVER in visitTypeAnnotation()
522 && sort != TypeReference.METHOD_FORMAL_PARAMETER in visitTypeAnnotation()
523 && sort != TypeReference.THROWS) { in visitTypeAnnotation()
888 int sort = new TypeReference(typeRef).getSort(); in visitInsnAnnotation()
889 if (sort != TypeReference.INSTANCEOF in visitInsnAnnotation()
[all …]
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/type/
DTypeReference.java27 public abstract class TypeReference<T> implements Comparable<TypeReference<T>> class
31 protected TypeReference() in TypeReference() method in TypeReference
55 public int compareTo(TypeReference<T> o) { return 0; } in compareTo()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoerceContainersTest.java5 import com.fasterxml.jackson.core.type.TypeReference;
31 .constructType(new TypeReference<List<Double>>() { }); in testScalarCollections()
41 .constructType(new TypeReference<List<String>>() { }); in testStringCollections()
57 .constructType(new TypeReference<Map<Long, Boolean>>() { }); in testScalarMap()
67 .constructType(new TypeReference<EnumMap<ABC, Boolean>>() { }); in testEnumMap()
83 .constructType(new TypeReference<Object[]>() { }); in testObjectArray()
93 .constructType(new TypeReference<String[]>() { }); in testStringArray()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/reference/
DBaseTypeReference.java34 import org.jf.dexlib2.iface.reference.TypeReference;
38 public abstract class BaseTypeReference implements TypeReference {
47 if (o instanceof TypeReference) { in equals()
48 return getType().equals(((TypeReference)o).getType()); in equals()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/
DTestTypeFactory1604.java5 import com.fasterxml.jackson.core.type.TypeReference;
39 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedSimple()
54 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedNested()
69 JavaType base = tf.constructType(new TypeReference<Data1604<List<Long>>>() { }); in testCustomTypesRefinedSneaky()
86 JavaType type = tf.constructType(new TypeReference<TwoParam1604<String,List<Long>>>() { }); in testTwoParamSneakyCustom()
111 JavaType base = tf.constructType(new TypeReference<Data1604<String>>() { }); in testErrorForMismatch()
127 JavaType base = tf.constructType(new TypeReference<Either<Object, Object>>() { }); in testResolveGenericPartialSubtypes()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/base/reference/
DBaseTypeReference.java33 import com.android.tools.smali.dexlib2.iface.reference.TypeReference;
38 public abstract class BaseTypeReference extends BaseReference implements TypeReference {
47 if (o instanceof TypeReference) { in equals()
48 return getType().equals(((TypeReference)o).getType()); in equals()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/debug/
DBuilderStartLocal.java38 import org.jf.dexlib2.iface.reference.TypeReference;
45 @Nullable private final TypeReference type;
50 @Nullable TypeReference type, in BuilderStartLocal()
61 @Nullable @Override public TypeReference getTypeReference() { return type; } in getTypeReference()
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/builder/debug/
DBuilderStartLocal.java37 import com.android.tools.smali.dexlib2.iface.reference.TypeReference;
44 @Nullable private final TypeReference type;
49 @Nullable TypeReference type, in BuilderStartLocal()
60 @Nullable @Override public TypeReference getTypeReference() { return type; } in getTypeReference()

12345678