Utility for generating and validating JNI signatures.
More...
#include <Signature.h>
|
static StringType | Generate () |
| Required for handling cases when an empty set of variadic arguments are forwarded from AZ::Android::JNI::GetSignature calls.
|
|
template<typename... Args> |
static StringType | Generate (Args &&... parameters) |
| Gets the signature from n-number of parameters.
|
|
static bool | Validate (const StringType &baseSignature) |
| Required for handling cases when an empty set of variadic arguments are forwarded from AZ::Android::JNI::ValidateSignature calls.
|
|
template<typename... Args> |
static bool | Validate (const StringType &baseSignature, Args &&... parameters) |
| Validates n-number of parameters type signatures.
|
|
template<typename StringType = AZStd::string>
class AZ::Android::JNI::Signature< StringType >
Utility for generating and validating JNI signatures.
- Template Parameters
-
StringType | The type of string used internally for generation and validation. Defaults to AZStd::string |
◆ Generate() [1/2]
template<typename StringType = AZStd::string>
Required for handling cases when an empty set of variadic arguments are forwarded from AZ::Android::JNI::GetSignature calls.
- Returns
- An empty string
◆ Generate() [2/2]
template<typename StringType = AZStd::string>
template<typename... Args>
Gets the signature from n-number of parameters.
- Parameters
-
parameters | Variables only used to forward their types on to AZ::Android::JNI::Signature::GenerateImpl |
- Returns
- String containing a fully qualified Java signature
◆ Validate() [1/2]
template<typename StringType = AZStd::string>
Required for handling cases when an empty set of variadic arguments are forwarded from AZ::Android::JNI::ValidateSignature calls.
- Parameters
-
baseSignature | The string representation of the expected type signature. Should be an empty string in this case. |
- Returns
- True if the string is empty (e.g. nothing to validate), false otherwise
◆ Validate() [2/2]
template<typename StringType = AZStd::string>
template<typename... Args>
Validates n-number of parameters type signatures.
- Parameters
-
baseSignature | The string representation of the expected JNI type signatures in parameters |
parameters | The input arguments to be validated |
- Returns
- True if all arguments in
parameters
match the expected type signature in baseSignature
, False otherwise
The documentation for this class was generated from the following files:
- Code/Framework/AzCore/Platform/Android/AzCore/Android/JNI/Signature.h
- Code/Framework/AzCore/Platform/Android/AzCore/Android/JNI/Internal/Signature_impl.h