Package org.reflections.util
Class JavassistHelper
- java.lang.Object
-
- org.reflections.util.JavassistHelper
-
public class JavassistHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
includeInvisibleTag
setting this static to false will result in returning onlyRetentionPolicy.RUNTIME
visible annotation
-
Constructor Summary
Constructors Constructor Description JavassistHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
fieldName(javassist.bytecode.ClassFile classFile, javassist.bytecode.FieldInfo object)
static List<String>
getAnnotations(Function<String,javassist.bytecode.AttributeInfo> function)
static Stream<javassist.bytecode.MethodInfo>
getConstructors(javassist.bytecode.ClassFile classFile)
static Stream<javassist.bytecode.MethodInfo>
getMethods(javassist.bytecode.ClassFile classFile)
static List<String>
getParameters(javassist.bytecode.MethodInfo method)
static List<List<String>>
getParametersAnnotations(javassist.bytecode.MethodInfo method)
static String
getReturnType(javassist.bytecode.MethodInfo method)
static boolean
isPublic(Object object)
static String
methodName(javassist.bytecode.ClassFile classFile, javassist.bytecode.MethodInfo object)
-
-
-
Field Detail
-
includeInvisibleTag
public static boolean includeInvisibleTag
setting this static to false will result in returning onlyRetentionPolicy.RUNTIME
visible annotation
-
-
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)
-
getReturnType
public static String getReturnType(javassist.bytecode.MethodInfo method)
-
-