Home
last modified time | relevance | path

Searched refs:targetType (Results 1 – 25 of 83) sorted by relevance

1234

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoerceEmptyArrayTest.java90 final Class<?> targetType = Bean.class; in testPOJOFromEmptyArray() local
92 _verifyFailForEmptyArray(DEFAULT_READER, targetType); in testPOJOFromEmptyArray()
93 _verifyFailForEmptyArray(MAPPER_TO_FAIL, targetType); in testPOJOFromEmptyArray()
96 _verifyToNullCoercion(MAPPER_TO_NULL, targetType); in testPOJOFromEmptyArray()
97 _verifyToNullCoercion(MAPPER_TRY_CONVERT, targetType); in testPOJOFromEmptyArray()
99 _verifyToEmptyCoercion(MAPPER_TO_EMPTY, targetType, new Bean()); in testPOJOFromEmptyArray()
105 mapper.coercionConfigFor(targetType) in testPOJOFromEmptyArray()
107 _verifyFailForEmptyArray(mapper, targetType); in testPOJOFromEmptyArray()
115 _verifyToEmptyCoercion(MAPPER_TO_EMPTY, targetType, new Bean()); in testPOJOFromEmptyArray()
126 final Class<?> targetType = Map.class; in testMapFromEmptyArray() local
[all …]
DCoerceContainersTest.java154 private void _verifyNoCoercion(Class<?> targetType) throws Exception { in _verifyNoCoercion() argument
155 _verifyNoCoercion(VANILLA_MAPPER.constructType(targetType)); in _verifyNoCoercion()
158 private void _verifyNoCoercion(JavaType targetType) throws Exception { in _verifyNoCoercion() argument
160 VANILLA_MAPPER.readerFor(targetType).readValue(JSON_EMPTY); in _verifyNoCoercion()
168 private <T> T _readWithCoercion(Class<?> targetType) throws Exception { in _readWithCoercion() argument
169 return COERCING_MAPPER.readerFor(targetType).readValue(JSON_EMPTY); in _readWithCoercion()
172 private <T> T _readWithCoercion(JavaType targetType) throws Exception { in _readWithCoercion() argument
173 return COERCING_MAPPER.readerFor(targetType).readValue(JSON_EMPTY); in _readWithCoercion()
DCoerceFloatToIntTest.java269 private void _verifyCoerceFail(ObjectMapper m, Class<?> targetType, in _verifyCoerceFail() argument
272 _verifyCoerceFail(m.reader(), targetType, doc, targetType.getName()); in _verifyCoerceFail() local
275 private void _verifyCoerceFail(ObjectMapper m, Class<?> targetType, in _verifyCoerceFail() argument
278 _verifyCoerceFail(m.reader(), targetType, doc, targetTypeDesc); in _verifyCoerceFail() local
281 private void _verifyCoerceFail(ObjectReader r, Class<?> targetType, in _verifyCoerceFail() argument
284 _verifyCoerceFail(r, targetType, doc, targetType.getName()); in _verifyCoerceFail()
287 private void _verifyCoerceFail(ObjectReader r, Class<?> targetType, in _verifyCoerceFail() argument
291 r.forType(targetType).readValue(doc); in _verifyCoerceFail()
292 fail("Should not accept Float for "+targetType.getName()+" by default"); in _verifyCoerceFail()
DCoerceToBooleanTest.java219 JsonToken tokenType, String tokenValue, Class<?> targetType) throws IOException in _verifyBooleanCoerceFail() argument
226 final ObjectReader r = LEGACY_NONCOERCING_MAPPER.readerFor(targetType); in _verifyBooleanCoerceFail()
258 …private void _verifyFailFromInteger(ObjectMapper m, Class<?> targetType, String doc) throws Except… in _verifyFailFromInteger() argument
259 _verifyFailFromInteger(m, targetType, doc, targetType); in _verifyFailFromInteger()
262 private void _verifyFailFromInteger(ObjectMapper m, Class<?> targetType, String doc, in _verifyFailFromInteger() argument
266 m.readerFor(targetType).readValue(doc); in _verifyFailFromInteger()
267 fail("Should not accept Integer for "+targetType.getName()+" by default"); in _verifyFailFromInteger()
/external/javassist/src/main/javassist/bytecode/
DTypeAnnotationsAttribute.java114 int targetType = info[pos] & 0xff; in annotationArray() local
115 pos = subWalker.targetInfo(pos + 1, targetType); in annotationArray()
190 void typeParameterTarget(int pos, int targetType, int typeParameterIndex) in typeParameterTarget() argument
195 void typeParameterBoundTarget(int pos, int targetType, int typeParameterIndex, in typeParameterBoundTarget() argument
198 void emptyTarget(int pos, int targetType) throws Exception {} in emptyTarget() argument
204 int localvarTarget(int pos, int targetType, int tableLength) throws Exception { in localvarTarget() argument
209 localvarTarget(pos, targetType, start, length, index); in localvarTarget()
216 void localvarTarget(int pos, int targetType, int startPc, int length, int index) in localvarTarget() argument
221 void offsetTarget(int pos, int targetType, int offset) throws Exception {} in offsetTarget() argument
223 void typeArgumentTarget(int pos, int targetType, int offset, int typeArgumentIndex) in typeArgumentTarget() argument
[all …]
/external/javassist/src/main/javassist/bytecode/annotation/
DTypeAnnotationsWriter.java40 public void typeParameterTarget(int targetType, int typeParameterIndex) in typeParameterTarget() argument
43 output.write(targetType); in typeParameterTarget()
62 public void typeParameterBoundTarget(int targetType, int typeParameterIndex, int boundIndex) in typeParameterBoundTarget() argument
65 output.write(targetType); in typeParameterBoundTarget()
74 public void emptyTarget(int targetType) throws IOException { in emptyTarget() argument
75 output.write(targetType); in emptyTarget()
106 public void localVarTarget(int targetType, int tableLength) in localVarTarget() argument
109 output.write(targetType); in localVarTarget()
140 public void offsetTarget(int targetType, int offset) in offsetTarget() argument
143 output.write(targetType); in offsetTarget()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/exc/
DInvalidFormatException.java35 Object value, Class<?> targetType) in InvalidFormatException() argument
39 _targetType = targetType; in InvalidFormatException()
47 Object value, Class<?> targetType) in InvalidFormatException() argument
51 _targetType = targetType; in InvalidFormatException()
58 String msg, Object value, Class<?> targetType) in InvalidFormatException() argument
60 super(p, msg, targetType); in InvalidFormatException()
65 Object value, Class<?> targetType) in from() argument
67 return new InvalidFormatException(p, msg, value, targetType); in from()
DMismatchedInputException.java42 protected MismatchedInputException(JsonParser p, String msg, Class<?> targetType) { in MismatchedInputException() argument
44 _targetType = targetType; in MismatchedInputException()
47 protected MismatchedInputException(JsonParser p, String msg, JavaType targetType) { in MismatchedInputException() argument
49 _targetType = ClassUtil.rawClass(targetType); in MismatchedInputException()
58 public static MismatchedInputException from(JsonParser p, JavaType targetType, String msg) { in from() argument
59 return new MismatchedInputException(p, msg, targetType); in from()
62 public static MismatchedInputException from(JsonParser p, Class<?> targetType, String msg) { in from() argument
63 return new MismatchedInputException(p, msg, targetType); in from()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DCoercionConfigs.java162 LogicalType targetType, in findCoercion() argument
177 if ((_perTypeCoercions != null) && (targetType != null)) { in findCoercion()
178 MutableCoercionConfig cc = _perTypeCoercions[targetType.ordinal()]; in findCoercion()
200 && (targetType == LogicalType.Integer)) { in findCoercion()
208 final boolean baseScalar = (targetType == LogicalType.Float) in findCoercion()
209 || (targetType == LogicalType.Integer) in findCoercion()
210 || (targetType == LogicalType.Boolean) in findCoercion()
211 || (targetType == LogicalType.DateTime); in findCoercion()
230 if (targetType == LogicalType.OtherScalar) { in findCoercion()
257 LogicalType targetType, in findCoercionFromBlankString() argument
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DNalUnitTargetBuffer.java27 private final int targetType; field in NalUnitTargetBuffer
35 public NalUnitTargetBuffer(int targetType, int initialCapacity) { in NalUnitTargetBuffer() argument
36 this.targetType = targetType; in NalUnitTargetBuffer()
65 isFilling = type == targetType; in startNalUnit()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DDeserializationContext.java489 public CoercionAction findCoercionAction(LogicalType targetType, in findCoercionAction() argument
492 return _config.findCoercionAction(targetType, targetClass, inputShape); in findCoercionAction()
511 public CoercionAction findCoercionFromBlankString(LogicalType targetType, in findCoercionFromBlankString() argument
515 … return _config.findCoercionFromBlankString(targetType, targetClass, actionIfBlankNotAllowed); in findCoercionFromBlankString()
1129 public Object handleWeirdNativeValue(JavaType targetType, Object badValue, in handleWeirdNativeValue() argument
1134 final Class<?> raw = targetType.getRawClass(); in handleWeirdNativeValue()
1137 Object goodValue = h.value().handleWeirdNativeValue(this, targetType, badValue, p); in handleWeirdNativeValue()
1145 ClassUtil.getClassDescription(targetType), in handleWeirdNativeValue()
1321 public Object handleUnexpectedToken(JavaType targetType, JsonParser p) in handleUnexpectedToken() argument
1324 return handleUnexpectedToken(targetType, p.currentToken(), p, null); in handleUnexpectedToken()
[all …]
/external/auto/value/src/main/java/com/google/auto/value/processor/
DBuilderMethodClassifier.java439 TypeMirror targetType = getterToPropertyType.get(valueGetter); in getSetterFunction() local
447 if (typeUtils.isAssignable(parameterType, targetType) in getSetterFunction()
448 && typeUtils.isAssignable(targetType, parameterType)) { in getSetterFunction()
466 ImmutableList<ExecutableElement> copyOfMethods = copyOfMethods(targetType, nullableParameter); in getSetterFunction()
473 parameterType, targetType, autoValueClass, valueGetter.getSimpleName()); in getSetterFunction()
487 DeclaredType targetType = MoreTypes.asDeclared(getterToPropertyType.get(valueGetter)); in getConvertingSetterFunction() local
490 getConvertingSetterFunction(copyOfMethod, targetType, parameterType); in getConvertingSetterFunction()
495 String targetTypeSimpleName = targetType.asElement().getSimpleName().toString(); in getConvertingSetterFunction()
501 targetType, in getConvertingSetterFunction()
506 targetType); in getConvertingSetterFunction()
[all …]
DTypeVariables.java86 TypeElement targetType) { in rewriteReturnTypes() argument
88 List<? extends TypeParameterElement> targetTypeParameters = targetType.getTypeParameters(); in rewriteReturnTypes()
137 TypeMirror targetType, in canAssignStaticMethodResult() argument
139 if (!targetType.getKind().equals(TypeKind.DECLARED) in canAssignStaticMethodResult()
146 MoreTypes.asDeclared(targetType).getTypeArguments(); in canAssignStaticMethodResult()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DDeserializationProblemHandler.java136 Class<?> targetType, String valueToConvert, in handleWeirdStringValue() argument
170 Class<?> targetType, Number valueToConvert, String failureMsg) in handleWeirdNumberValue() argument
198 JavaType targetType, Object valueToConvert, JsonParser p) in handleWeirdNativeValue() argument
214 Class<?> targetType, JsonToken t, JsonParser p, in handleUnexpectedToken() argument
249 JavaType targetType, JsonToken t, JsonParser p, in handleUnexpectedToken() argument
254 return handleUnexpectedToken(ctxt, targetType.getRawClass(), t, p, failureMsg); in handleUnexpectedToken()
/external/golang-protobuf/jsonpb/
Djsonpb.go726 targetType := target.Type()
729 if targetType.Kind() == reflect.Ptr {
733 …if string(inputValue) == "null" && targetType != reflect.TypeOf(&stpb.Value{}) && !isJSONPBUnmarsh…
736 target.Set(reflect.New(targetType.Elem()))
908 target.Set(reflect.New(targetType.Elem()))
911 if targetType.Kind() != reflect.Int32 {
912 return fmt.Errorf("invalid target %q for enum %s", targetType.Kind(), prop.Enum)
919 if targetType.Kind() == reflect.Struct {
947 sprops := proto.GetProperties(targetType)
1004 return fmt.Errorf("unknown field %q in %v", f, targetType)
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DStdNodeBasedDeserializer.java34 protected StdNodeBasedDeserializer(JavaType targetType) { in StdNodeBasedDeserializer() argument
35 super(targetType); in StdNodeBasedDeserializer()
38 protected StdNodeBasedDeserializer(Class<T> targetType) { in StdNodeBasedDeserializer() argument
39 super(targetType); in StdNodeBasedDeserializer()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DProxyMaker.java48 Type targetType = Type.getType(targetClass); in createProxyFactory() local
49 String targetName = targetType.getInternalName(); in createProxyFactory()
55 writer.visitField(ACC_PUBLIC, TARGET_FIELD, targetType.getDescriptor(), null, null); in createProxyFactory()
63 m.getField(proxyType, TARGET_FIELD, targetType); in createProxyFactory()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/exc/
DInputCoercionException.java34 JsonToken inputType, Class<?> targetType) { in InputCoercionException() argument
37 _targetType = targetType; in InputCoercionException()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/
DProblemHandler1767Test.java13 Class<?> targetType, in handleWeirdStringValue() argument
17 if (targetType != Integer.TYPE) { in handleWeirdStringValue()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DReader.java292 List<T> target, Class<T> targetType, ExtensionRegistryLite extensionRegistry) in readMessageList() argument
304 List<T> target, Class<T> targetType, ExtensionRegistryLite extensionRegistry) in readGroupList() argument
309 List<T> target, Schema<T> targetType, ExtensionRegistryLite extensionRegistry) in readGroupList() argument
/external/dokka/runners/gradle-plugin/src/main/kotlin/
DProxyUtils.kt27 fun automagicProxy(targetClassLoader: ClassLoader, targetType: Class<*>, delegate: Any): Any = in automagicTypedProxy()
30 arrayOf(targetType), in automagicTypedProxy()
/external/auto/factory/src/main/java/com/google/auto/factory/processor/
DAutoFactoryDeclaration.java56 abstract TypeElement targetType(); in targetType() method in AutoFactoryDeclaration
66 String packageName = getPackage(targetType()).getQualifiedName().toString(); in getFactoryName()
74 builder.append(targetType().getSimpleName()).append("Factory"); in getFactoryName()
80 for (Element element = targetType().getEnclosingElement(); in targetEnclosingSimpleNames()
/external/vogar/src/vogar/
DVogar.java607 TargetType targetType; in run() local
609 targetType = TargetType.SSH; in run()
611 targetType = TargetType.LOCAL; in run()
613 targetType = TargetType.ADB_CHROOT; in run()
615 targetType = TargetType.ADB; in run()
620 : new File(targetType.defaultDeviceDir(), "run"); in run()
624 switch (targetType) { in run()
654 throw new IllegalStateException("Unknown target type: " + targetType); in run()
/external/turbine/java/com/google/turbine/bytecode/
DClassFile.java494 private final TargetType targetType; field in ClassFile.TypeAnnotationInfo
500 TargetType targetType, Target target, TypePath path, AnnotationInfo anno) { in TypeAnnotationInfo() argument
501 this.targetType = targetType; in TypeAnnotationInfo()
516 public TargetType targetType() { in targetType() method in ClassFile.TypeAnnotationInfo
517 return targetType; in targetType()
/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/
DConvertStandardToSPIRV.cpp143 IntegerType targetType = builder.getIntegerType(targetBits); in getOffsetForBitwidth() local
145 builder.getIntegerAttr(targetType, targetBits / sourceBits); in getOffsetForBitwidth()
146 auto idx = builder.create<spirv::ConstantOp>(loc, targetType, idxAttr); in getOffsetForBitwidth()
147 IntegerAttr srcBitsAttr = builder.getIntegerAttr(targetType, sourceBits); in getOffsetForBitwidth()
149 builder.create<spirv::ConstantOp>(loc, targetType, srcBitsAttr); in getOffsetForBitwidth()
151 return builder.create<spirv::IMulOp>(loc, targetType, m, srcBitsValue); in getOffsetForBitwidth()
168 IntegerType targetType = builder.getIntegerType(targetBits); in adjustAccessChainForBitwidth() local
170 builder.getIntegerAttr(targetType, targetBits / sourceBits); in adjustAccessChainForBitwidth()
171 auto idx = builder.create<spirv::ConstantOp>(loc, targetType, attr); in adjustAccessChainForBitwidth()
184 Type targetType = builder.getIntegerType(targetBits); in shiftValue() local
[all …]

1234