org.reflections.adapters
Class JavaReflectionAdapter

java.lang.Object
  extended by org.reflections.adapters.JavaReflectionAdapter
All Implemented Interfaces:
MetadataAdapter<Class,Field,Member>

public class JavaReflectionAdapter
extends Object
implements MetadataAdapter<Class,Field,Member>


Constructor Summary
JavaReflectionAdapter()
           
 
Method Summary
 List<String> getClassAnnotationNames(Class aClass)
           
 String getClassName(Class cls)
           
 List<String> getFieldAnnotationNames(Field field)
           
 String getFieldName(Field field)
           
 List<Field> getFields(Class cls)
           
 List<String> getInterfacesNames(Class cls)
           
 List<String> getMethodAnnotationNames(Member method)
           
 String getMethodFullKey(Class cls, Member method)
           
 String getMethodKey(Class cls, Member method)
           
 String getMethodModifier(Member method)
           
 String getMethodName(Member method)
           
 List<Member> getMethods(Class cls)
           
static String getName(Class type)
           
 Class getOfCreateClassObject(Vfs.File file)
           
 Class getOfCreateClassObject(Vfs.File file, ClassLoader... loaders)
           
 List<String> getParameterAnnotationNames(Member method, int parameterIndex)
           
 List<String> getParameterNames(Member member)
           
 String getReturnTypeName(Member method)
           
 String getSuperclassName(Class cls)
           
 boolean isPublic(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaReflectionAdapter

public JavaReflectionAdapter()
Method Detail

getFields

public List<Field> getFields(Class cls)
Specified by:
getFields in interface MetadataAdapter<Class,Field,Member>

getMethods

public List<Member> getMethods(Class cls)
Specified by:
getMethods in interface MetadataAdapter<Class,Field,Member>

getMethodName

public String getMethodName(Member method)
Specified by:
getMethodName in interface MetadataAdapter<Class,Field,Member>

getParameterNames

public List<String> getParameterNames(Member member)
Specified by:
getParameterNames in interface MetadataAdapter<Class,Field,Member>

getClassAnnotationNames

public List<String> getClassAnnotationNames(Class aClass)
Specified by:
getClassAnnotationNames in interface MetadataAdapter<Class,Field,Member>

getFieldAnnotationNames

public List<String> getFieldAnnotationNames(Field field)
Specified by:
getFieldAnnotationNames in interface MetadataAdapter<Class,Field,Member>

getMethodAnnotationNames

public List<String> getMethodAnnotationNames(Member method)
Specified by:
getMethodAnnotationNames in interface MetadataAdapter<Class,Field,Member>

getParameterAnnotationNames

public List<String> getParameterAnnotationNames(Member method,
                                                int parameterIndex)
Specified by:
getParameterAnnotationNames in interface MetadataAdapter<Class,Field,Member>

getReturnTypeName

public String getReturnTypeName(Member method)
Specified by:
getReturnTypeName in interface MetadataAdapter<Class,Field,Member>

getFieldName

public String getFieldName(Field field)
Specified by:
getFieldName in interface MetadataAdapter<Class,Field,Member>

getOfCreateClassObject

public Class getOfCreateClassObject(Vfs.File file)
                             throws Exception
Specified by:
getOfCreateClassObject in interface MetadataAdapter<Class,Field,Member>
Throws:
Exception

getOfCreateClassObject

public Class getOfCreateClassObject(Vfs.File file,
                                    @Nullable
                                    ClassLoader... loaders)
                             throws Exception
Throws:
Exception

getMethodModifier

public String getMethodModifier(Member method)
Specified by:
getMethodModifier in interface MetadataAdapter<Class,Field,Member>

getMethodKey

public String getMethodKey(Class cls,
                           Member method)
Specified by:
getMethodKey in interface MetadataAdapter<Class,Field,Member>

getMethodFullKey

public String getMethodFullKey(Class cls,
                               Member method)
Specified by:
getMethodFullKey in interface MetadataAdapter<Class,Field,Member>

isPublic

public boolean isPublic(Object o)
Specified by:
isPublic in interface MetadataAdapter<Class,Field,Member>

getClassName

public String getClassName(Class cls)
Specified by:
getClassName in interface MetadataAdapter<Class,Field,Member>

getSuperclassName

public String getSuperclassName(Class cls)
Specified by:
getSuperclassName in interface MetadataAdapter<Class,Field,Member>

getInterfacesNames

public List<String> getInterfacesNames(Class cls)
Specified by:
getInterfacesNames in interface MetadataAdapter<Class,Field,Member>

getName

public static String getName(Class type)


Copyright © 2013. All Rights Reserved.