CommandMetadataParser

Parser for extracting command metadata from command classes.

This parser analyzes command classes to extract metadata such as aggregate information, property getters for IDs and versions, and command characteristics like create commands or void commands.

Author

ahoo wang

See also

Functions

Link copied to clipboard
fun <TYPE : Any, M : Metadata> parse(type: Class<TYPE>): M

Parses metadata for the given class type, utilizing caching to avoid redundant parsing operations. If metadata for the class has already been parsed and cached, returns the cached instance. Otherwise, parses the metadata using parseToMetadata and stores it in the cache.

Link copied to clipboard
open override fun <TYPE : Any, M : Metadata> parseToMetadata(type: Class<TYPE>): M

Parses the given command class to extract command metadata.