java/Ref: add LocalRef::GetEnv()

This commit is contained in:
Max Kellermann 2018-09-06 20:04:40 +02:00
parent 728e4e9a38
commit 23556585ca
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ namespace Java {
LocalRef(const LocalRef &other) = delete;
LocalRef &operator=(const LocalRef &other) = delete;
JNIEnv *GetEnv() const noexcept {
return env;
}
T Get() const noexcept {
return value;
}