|
@@ -3,7 +3,7 @@
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* Created: 2023-04-08
|
|
* Created: 2023-04-08
|
|
-* Changed: 2023-04-10
|
|
|
|
|
|
+* Changed: 2023-05-16
|
|
*
|
|
*
|
|
* */
|
|
* */
|
|
|
|
|
|
@@ -13,13 +13,12 @@
|
|
using ls::std::core::EmptyStringArgumentEvaluator;
|
|
using ls::std::core::EmptyStringArgumentEvaluator;
|
|
using ls::std::core::experimental::JniMethod;
|
|
using ls::std::core::experimental::JniMethod;
|
|
using std::string;
|
|
using std::string;
|
|
|
|
+using std::string_view;
|
|
|
|
|
|
-JniMethod::JniMethod(const string &_methodIdentifier, const string &_methodSignature)
|
|
|
|
|
|
+JniMethod::JniMethod(const string &_methodIdentifier, const string &_methodSignature) : methodIdentifier(_methodIdentifier), methodSignature(_methodSignature)
|
|
{
|
|
{
|
|
EmptyStringArgumentEvaluator{_methodIdentifier, "no method identifier has been provided!"}.evaluate();
|
|
EmptyStringArgumentEvaluator{_methodIdentifier, "no method identifier has been provided!"}.evaluate();
|
|
EmptyStringArgumentEvaluator{_methodSignature, "no method signature has been provided!"}.evaluate();
|
|
EmptyStringArgumentEvaluator{_methodSignature, "no method signature has been provided!"}.evaluate();
|
|
- this->methodIdentifier = _methodIdentifier;
|
|
|
|
- this->methodSignature = _methodSignature;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
JniMethod::~JniMethod() = default;
|
|
JniMethod::~JniMethod() = default;
|
|
@@ -29,12 +28,12 @@ jmethodID JniMethod::getMethodId()
|
|
return this->methodId;
|
|
return this->methodId;
|
|
}
|
|
}
|
|
|
|
|
|
-string JniMethod::getMethodIdentifier()
|
|
|
|
|
|
+string JniMethod::getMethodIdentifier() const
|
|
{
|
|
{
|
|
return this->methodIdentifier;
|
|
return this->methodIdentifier;
|
|
}
|
|
}
|
|
|
|
|
|
-string JniMethod::getMethodSignature()
|
|
|
|
|
|
+string JniMethod::getMethodSignature() const
|
|
{
|
|
{
|
|
return this->methodSignature;
|
|
return this->methodSignature;
|
|
}
|
|
}
|
|
@@ -44,12 +43,12 @@ void JniMethod::setMethodId(jmethodID _methodId)
|
|
this->methodId = _methodId;
|
|
this->methodId = _methodId;
|
|
}
|
|
}
|
|
|
|
|
|
-void JniMethod::setMethodIdentifier(const string &_methodIdentifier)
|
|
|
|
|
|
+void JniMethod::setMethodIdentifier(string_view _methodIdentifier)
|
|
{
|
|
{
|
|
this->methodIdentifier = _methodIdentifier;
|
|
this->methodIdentifier = _methodIdentifier;
|
|
}
|
|
}
|
|
|
|
|
|
-void JniMethod::setMethodSignature(const string &_methodSignature)
|
|
|
|
|
|
+void JniMethod::setMethodSignature(string_view _methodSignature)
|
|
{
|
|
{
|
|
this->methodSignature = _methodSignature;
|
|
this->methodSignature = _methodSignature;
|
|
}
|
|
}
|