Class InvokeParameterUtil


  • public class InvokeParameterUtil
    extends Object
    Utility for parsing method descriptors in invoke operations.
    • Constructor Detail

      • InvokeParameterUtil

        public InvokeParameterUtil()
    • Method Detail

      • parseDescriptorParameters

        public static int parseDescriptorParameters​(String descriptor)
        Parses the method descriptor to count the number of parameters.
        Parameters:
        descriptor - The method descriptor string.
        Returns:
        The number of parameters.
      • parseDescriptorReturnType

        public static String parseDescriptorReturnType​(String descriptor)
        Parses the method descriptor to extract the return type.
        Parameters:
        descriptor - The method descriptor string.
        Returns:
        The return type as a string.
      • determineTypeSlots

        public static int determineTypeSlots​(String returnType)
        Determines the number of slots based on the return type.
        Parameters:
        returnType - The return type descriptor.
        Returns:
        The number of slots (0 for void, 1 for most types, 2 for long and double).