diff options
author | Guardiola31337 <pablo.guardiola@mapbox.com> | 2017-05-23 12:46:14 +0200 |
---|---|---|
committer | Guardiola31337 <pablo.guardiola@mapbox.com> | 2017-05-25 17:10:31 +0200 |
commit | 92fd70f40cb19a8bcc5cea576af7a1ff36f762a3 (patch) | |
tree | d425393cbc05b100a3656fa71628fe56511ba414 /platform/android/src/style/filter.hpp | |
parent | 30cc103d98fe251b02901759c448211d8d4c42de (diff) | |
download | qtlocation-mapboxgl-92fd70f40cb19a8bcc5cea576af7a1ff36f762a3.tar.gz |
[WIP] wrap statement in filter and start replacing get filter nested conditional with visitor
Diffstat (limited to 'platform/android/src/style/filter.hpp')
-rw-r--r-- | platform/android/src/style/filter.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/platform/android/src/style/filter.hpp b/platform/android/src/style/filter.hpp index 959ab90f1f..bfd8838f3d 100644 --- a/platform/android/src/style/filter.hpp +++ b/platform/android/src/style/filter.hpp @@ -4,7 +4,6 @@ #include <mbgl/util/noncopyable.hpp> #include <jni/jni.hpp> -#include "statement.hpp" namespace mbgl { namespace android { @@ -14,12 +13,18 @@ public: static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/Filter"; }; - static jni::Object<Statement> fromFilter(jni::JNIEnv&, const mbgl::style::Filter&); + static jni::Object<Filter::Statement> fromFilter(jni::JNIEnv&, const mbgl::style::Filter&); static jni::Class<Filter> javaClass; static void registerNative(jni::JNIEnv&); + class Statement : private mbgl::util::noncopyable { + public: + static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/Filter$Statement"; }; + + static jni::Class<Filter::Statement> javaClass; + }; }; } // namespace android |