JniClassParameter.cpp 1019 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-04-07
  6. * Changed: 2023-04-08
  7. *
  8. * */
  9. #include <ls-std/core/jni/JniClassParameter.hpp>
  10. using ls::std::core::JniClassParameter;
  11. using ls::std::core::interface_type::IJniApi;
  12. using std::shared_ptr;
  13. using std::string;
  14. JniClassParameter::JniClassParameter() = default;
  15. JniClassParameter::~JniClassParameter() = default;
  16. JNIEnv *JniClassParameter::getJavaEnvironment()
  17. {
  18. return this->environment;
  19. }
  20. jobject JniClassParameter::getJavaObject()
  21. {
  22. return this->javaObject;
  23. }
  24. shared_ptr<IJniApi> JniClassParameter::getJniApi()
  25. {
  26. return this->jniApi;
  27. }
  28. void JniClassParameter::setJavaEnvironment(JNIEnv *_environment)
  29. {
  30. this->environment = _environment;
  31. }
  32. void JniClassParameter::setJavaObject(jobject _javaObject)
  33. {
  34. this->javaObject = _javaObject;
  35. }
  36. void JniClassParameter::setJniApi(const shared_ptr<IJniApi> &_jniApi)
  37. {
  38. this->jniApi = _jniApi;
  39. }