org.reflections.adapters

Class JavassistAdapter

  • All Implemented Interfaces:
    MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>


    public class JavassistAdapterextends Objectimplements MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
    • Field Detail

      • includeInvisibleTag

        public static boolean includeInvisibleTag
        setting this to false will result in returning only visible annotations from the relevant methods here (only RetentionPolicy.RUNTIME)
    • Constructor Detail

      • JavassistAdapter

        public JavassistAdapter()
    • Method Detail

      • getFields

        public List<javassist.bytecode.FieldInfo> getFields(javassist.bytecode.ClassFile cls)
        Specified by:
        getFields in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getMethods

        public List<javassist.bytecode.MethodInfo> getMethods(javassist.bytecode.ClassFile cls)
        Specified by:
        getMethods in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getMethodName

        public String getMethodName(javassist.bytecode.MethodInfo method)
        Specified by:
        getMethodName in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getParameterNames

        public List<String> getParameterNames(javassist.bytecode.MethodInfo method)
        Specified by:
        getParameterNames in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getClassAnnotationNames

        public List<String> getClassAnnotationNames(javassist.bytecode.ClassFile aClass)
        Specified by:
        getClassAnnotationNames in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getFieldAnnotationNames

        public List<String> getFieldAnnotationNames(javassist.bytecode.FieldInfo field)
        Specified by:
        getFieldAnnotationNames in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getMethodAnnotationNames

        public List<String> getMethodAnnotationNames(javassist.bytecode.MethodInfo method)
        Specified by:
        getMethodAnnotationNames in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getParameterAnnotationNames

        public List<String> getParameterAnnotationNames(javassist.bytecode.MethodInfo method,                                       int parameterIndex)
        Specified by:
        getParameterAnnotationNames in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getReturnTypeName

        public String getReturnTypeName(javassist.bytecode.MethodInfo method)
        Specified by:
        getReturnTypeName in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getFieldName

        public String getFieldName(javassist.bytecode.FieldInfo field)
        Specified by:
        getFieldName in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getOfCreateClassObject

        public javassist.bytecode.ClassFile getOfCreateClassObject(Vfs.File file)
        Specified by:
        getOfCreateClassObject in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getMethodModifier

        public String getMethodModifier(javassist.bytecode.MethodInfo method)
        Specified by:
        getMethodModifier in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getMethodKey

        public String getMethodKey(javassist.bytecode.ClassFile cls,                  javassist.bytecode.MethodInfo method)
        Specified by:
        getMethodKey in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getMethodFullKey

        public String getMethodFullKey(javassist.bytecode.ClassFile cls,                      javassist.bytecode.MethodInfo method)
        Specified by:
        getMethodFullKey in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • isPublic

        public boolean isPublic(Object o)
        Specified by:
        isPublic in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getClassName

        public String getClassName(javassist.bytecode.ClassFile cls)
        Specified by:
        getClassName in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getSuperclassName

        public String getSuperclassName(javassist.bytecode.ClassFile cls)
        Specified by:
        getSuperclassName in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • getInterfacesNames

        public List<String> getInterfacesNames(javassist.bytecode.ClassFile cls)
        Specified by:
        getInterfacesNames in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>
      • acceptsInput

        public boolean acceptsInput(String file)
        Specified by:
        acceptsInput in interface MetadataAdapter<javassist.bytecode.ClassFile,javassist.bytecode.FieldInfo,javassist.bytecode.MethodInfo>

Copyright © 2015. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14