Class JavassistHelper


  • public class JavassistHelper
    extends Object
    • Field Detail

      • includeInvisibleTag

        public static boolean includeInvisibleTag
        setting this static to false will result in returning only RetentionPolicy.RUNTIME visible annotation
    • Constructor Detail

      • JavassistHelper

        public JavassistHelper()
    • Method Detail

      • getAnnotations

        public static List<String> getAnnotations​(Function<String,​javassist.bytecode.AttributeInfo> function)
      • fieldName

        public static String fieldName​(javassist.bytecode.ClassFile classFile,
                                       javassist.bytecode.FieldInfo object)
      • methodName

        public static String methodName​(javassist.bytecode.ClassFile classFile,
                                        javassist.bytecode.MethodInfo object)
      • isPublic

        public static boolean isPublic​(Object object)
      • getMethods

        public static Stream<javassist.bytecode.MethodInfo> getMethods​(javassist.bytecode.ClassFile classFile)
      • getConstructors

        public static Stream<javassist.bytecode.MethodInfo> getConstructors​(javassist.bytecode.ClassFile classFile)
      • getParameters

        public static List<String> getParameters​(javassist.bytecode.MethodInfo method)
      • getReturnType

        public static String getReturnType​(javassist.bytecode.MethodInfo method)
      • getParametersAnnotations

        public static List<List<String>> getParametersAnnotations​(javassist.bytecode.MethodInfo method)