35 lines
892 B
C++
35 lines
892 B
C++
#pragma once
|
|
|
|
#include <mapbox/geometry.hpp>
|
|
#include <mbgl/util/noncopyable.hpp>
|
|
|
|
#include <jni/jni.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace android {
|
|
namespace gson {
|
|
|
|
class JsonElement : private mbgl::util::noncopyable {
|
|
public:
|
|
static constexpr auto Name() { return "com/google/gson/JsonElement"; };
|
|
|
|
static jni::Object<JsonElement> New(jni::JNIEnv&, const mapbox::geometry::value&);
|
|
|
|
static mapbox::geometry::value convert(JNIEnv&, jni::Object<JsonElement>);
|
|
|
|
static bool isJsonObject(JNIEnv&, jni::Object<JsonElement>);
|
|
|
|
static bool isJsonArray(JNIEnv&, jni::Object<JsonElement>);
|
|
|
|
static bool isJsonPrimitive(JNIEnv&, jni::Object<JsonElement>);
|
|
|
|
static bool isJsonNull(JNIEnv&, jni::Object<JsonElement>);
|
|
|
|
static jni::Class<JsonElement> javaClass;
|
|
|
|
static void registerNative(jni::JNIEnv&);
|
|
};
|
|
|
|
} // namespace gson
|
|
} // namespace android
|
|
} // namespace mbgl
|