add: PackageMetadata for signatures

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2022-04-18 18:24:56 +02:00
parent 4e56652429
commit 193eae298a
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -44,7 +44,7 @@ class MethodSignature(
* @param methodMetadata Metadata about the method for the [MethodSignature]. * @param methodMetadata Metadata about the method for the [MethodSignature].
* @param patternScanMethod The pattern scanning method the pattern scanner should rely on. * @param patternScanMethod The pattern scanning method the pattern scanner should rely on.
* Can either be [PatternScanMethod.Fuzzy] or [PatternScanMethod.Direct]. * Can either be [PatternScanMethod.Fuzzy] or [PatternScanMethod.Direct].
* @param description An optional description of the [MethodSignature]. * @param description An optional description for the [MethodSignature].
* @param compatiblePackages The list of packages the [MethodSignature] is compatible with. * @param compatiblePackages The list of packages the [MethodSignature] is compatible with.
* @param version The version of this signature. * @param version The version of this signature.
*/ */
@ -52,11 +52,21 @@ data class MethodSignatureMetadata(
val name: String, val name: String,
val methodMetadata: MethodMetadata?, val methodMetadata: MethodMetadata?,
val patternScanMethod: PatternScanMethod, val patternScanMethod: PatternScanMethod,
val compatiblePackages: Iterable<String>, val compatiblePackages: Iterable<PackageMetadata>,
val description: String?, val description: String?,
val version: String val version: String
) )
/**
* Metadata about a package.
* @param name The package name.
* @param version The version of the package.
*/
data class PackageMetadata(
val name: String,
val version: String
)
/** /**
* Metadata about the method for a [MethodSignature]. * Metadata about the method for a [MethodSignature].
* @param definingClass The defining class name of the method. * @param definingClass The defining class name of the method.