123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-04-08
- * Changed: 2023-05-16
- *
- * */
- #include <ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp>
- #include <ls-std/core/jni/JniMethod.hpp>
- using ls::std::core::EmptyStringArgumentEvaluator;
- using ls::std::core::experimental::JniMethod;
- using std::string;
- using std::string_view;
- JniMethod::JniMethod(const string &_methodIdentifier, const string &_methodSignature) : methodIdentifier(_methodIdentifier), methodSignature(_methodSignature)
- {
- EmptyStringArgumentEvaluator{_methodIdentifier, "no method identifier has been provided!"}.evaluate();
- EmptyStringArgumentEvaluator{_methodSignature, "no method signature has been provided!"}.evaluate();
- }
- JniMethod::~JniMethod() = default;
- jmethodID JniMethod::getMethodId()
- {
- return this->methodId;
- }
- string JniMethod::getMethodIdentifier() const
- {
- return this->methodIdentifier;
- }
- string JniMethod::getMethodSignature() const
- {
- return this->methodSignature;
- }
- void JniMethod::setMethodId(jmethodID _methodId)
- {
- this->methodId = _methodId;
- }
- void JniMethod::setMethodIdentifier(string_view _methodIdentifier)
- {
- this->methodIdentifier = _methodIdentifier;
- }
- void JniMethod::setMethodSignature(string_view _methodSignature)
- {
- this->methodSignature = _methodSignature;
- }
|