Class SJavassist


  • public class SJavassist
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SJavassist()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addMethodParameterAnnotation​(javassist.CtMethod method, javassist.bytecode.annotation.Annotation[][] annotations, javassist.ClassPool pool)  
      static javassist.CtClass getCtClass​(java.lang.Class clazz, javassist.ClassPool pool)
      Get a ctclass for a Java class from the pool.
      static javassist.CtClass getCtClass​(java.lang.String clname, javassist.ClassPool pool)
      Get a ctclass for a Java class from the pool.
      static javassist.CtClass[] getCtClasses​(java.lang.Class[] classes, javassist.ClassPool pool)
      Get a ctclass array for a class array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SJavassist

        public SJavassist()
    • Method Detail

      • addMethodParameterAnnotation

        public static void addMethodParameterAnnotation​(javassist.CtMethod method,
                                                        javassist.bytecode.annotation.Annotation[][] annotations,
                                                        javassist.ClassPool pool)
                                                 throws java.lang.Exception
        Parameters:
        method -
        annotations -
        pool -
        Throws:
        java.lang.Exception
      • getCtClass

        public static javassist.CtClass getCtClass​(java.lang.Class clazz,
                                                   javassist.ClassPool pool)
        Get a ctclass for a Java class from the pool.
        Parameters:
        clazz - The Java class.
        pool - The class pool.
        Returns:
        The ctclass.
      • getCtClass

        public static javassist.CtClass getCtClass​(java.lang.String clname,
                                                   javassist.ClassPool pool)
        Get a ctclass for a Java class from the pool.
        Parameters:
        clazz - The Java class.
        pool - The class pool.
        Returns:
        The ctclass.
      • getCtClasses

        public static javassist.CtClass[] getCtClasses​(java.lang.Class[] classes,
                                                       javassist.ClassPool pool)
        Get a ctclass array for a class array.
        Parameters:
        classes - The classes.
        pool - The pool.
        Returns:
        The ctclass array.