Class JavassistHelper


  • public class JavassistHelper
    extends Object
    Helper methods for Javassist functionality.
    • Constructor Detail

      • JavassistHelper

        public JavassistHelper()
    • Method Detail

      • returnValue

        public static String returnValue​(javassist.CtBehavior method)
                                  throws javassist.NotFoundException
        Create a javassist source snippet which either is empty (for anything which does not return a value) or a explanatory text around the $_ javassist return value variable.
        Parameters:
        method - descriptor of method
        Returns:
        source snippet
        Throws:
        javassist.NotFoundException
      • getSignature

        public static String getSignature​(javassist.CtBehavior method)
                                   throws javassist.NotFoundException
        Return javassist source snippet which lists all the parameters and their values. If available the source names are extracted from the debug information and used, otherwise just a number is shown.
        Parameters:
        method -
        Returns:
        Throws:
        javassist.NotFoundException