Lines Matching full:primitive
62 Primitive::Type field_type, JValue* value)
68 case Primitive::kPrimBoolean:
71 case Primitive::kPrimByte:
74 case Primitive::kPrimChar:
77 case Primitive::kPrimInt:
78 case Primitive::kPrimFloat:
81 case Primitive::kPrimLong:
82 case Primitive::kPrimDouble:
85 case Primitive::kPrimShort:
88 case Primitive::kPrimNot:
96 case Primitive::kPrimVoid:
101 StringPrintf("Not a primitive field: %s", PrettyField(f->GetArtField()).c_str()).c_str());
148 Primitive::Type field_type = f->GetTypeAsPrimitiveType();
157 template<Primitive::Type kPrimitiveType>
176 Primitive::Type field_type = f->GetTypeAsPrimitiveType();
179 // This if statement should get optimized out since we only pass in valid primitive types.
201 return GetPrimitiveField<Primitive::kPrimBoolean>(env, javaField, javaObj).GetZ();
205 return GetPrimitiveField<Primitive::kPrimByte>(env, javaField, javaObj).GetB();
209 return GetPrimitiveField<Primitive::kPrimChar>(env, javaField, javaObj).GetC();
213 return GetPrimitiveField<Primitive::kPrimDouble>(env, javaField, javaObj).GetD();
217 return GetPrimitiveField<Primitive::kPrimFloat>(env, javaField, javaObj).GetF();
221 return GetPrimitiveField<Primitive::kPrimInt>(env, javaField, javaObj).GetI();
225 return GetPrimitiveField<Primitive::kPrimLong>(env, javaField, javaObj).GetJ();
229 return GetPrimitiveField<Primitive::kPrimShort>(env, javaField, javaObj).GetS();
233 Primitive::Type field_type, bool allow_references,
240 case Primitive::kPrimBoolean:
247 case Primitive::kPrimByte:
254 case Primitive::kPrimChar:
261 case Primitive::kPrimInt:
262 case Primitive::kPrimFloat:
269 case Primitive::kPrimLong:
270 case Primitive::kPrimDouble:
277 case Primitive::kPrimShort:
284 case Primitive::kPrimNot:
295 case Primitive::kPrimVoid:
297 ThrowIllegalArgumentException(StringPrintf("Not a primitive field: %s",
314 Primitive::Type field_prim_type = Primitive::GetType(field_type_desciptor[0]);
315 if (field_prim_type == Primitive::kPrimNot) {
337 template<Primitive::Type kPrimitiveType>
346 Primitive::Type field_type = f->GetTypeAsPrimitiveType();
347 if (UNLIKELY(field_type == Primitive::kPrimNot)) {
348 ThrowIllegalArgumentException(StringPrintf("Not a primitive field: %s",
373 SetPrimitiveField<Primitive::kPrimBoolean>(env, javaField, javaObj, value);
379 SetPrimitiveField<Primitive::kPrimByte>(env, javaField, javaObj, value);
385 SetPrimitiveField<Primitive::kPrimChar>(env, javaField, javaObj, value);
391 SetPrimitiveField<Primitive::kPrimDouble>(env, javaField, javaObj, value);
397 SetPrimitiveField<Primitive::kPrimFloat>(env, javaField, javaObj, value);
403 SetPrimitiveField<Primitive::kPrimInt>(env, javaField, javaObj, value);
409 SetPrimitiveField<Primitive::kPrimLong>(env, javaField, javaObj, value);
415 SetPrimitiveField<Primitive::kPrimShort>(env, javaField, javaObj, value);