|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.annotations.AnnotationFinder
public class AnnotationFinder
AnnotationFinder Scans class sources using asm to find annotations.
Nested Class Summary | |
---|---|
static class |
AnnotationFinder.AnnotatedStructure
AnnotatedStructure Annotations on an object such as a class, field or method. |
class |
AnnotationFinder.MyClassVisitor
MyClassVisitor ASM visitor for a class. |
static class |
AnnotationFinder.ParsedClass
ParsedClass A class that contains annotations. |
static class |
AnnotationFinder.ParsedField
ParsedField A class field that can contain annotations. |
static class |
AnnotationFinder.ParsedMethod
ParsedMethod A class method that can contain annotations. |
Constructor Summary | |
---|---|
AnnotationFinder()
|
Method Summary | |
---|---|
static Class |
convertType(org.objectweb.asm.Type t)
|
static Class[] |
convertTypes(org.objectweb.asm.Type[] types)
|
protected boolean |
excludeClass(String name)
Exclude class by name Instances of AnnotationFinder can implement this method to exclude
classes by name. |
void |
find(ClassLoader loader,
boolean visitParents,
boolean nullInclusive,
ClassNameResolver resolver)
Find annotations on classes in the supplied classloader. |
void |
find(List<String> classNames,
ClassNameResolver resolver)
|
void |
find(Resource dir,
ClassNameResolver resolver)
|
void |
find(String[] classNames,
ClassNameResolver resolver)
|
void |
find(String className,
ClassNameResolver resolver)
|
void |
find(URI[] uris,
ClassNameResolver resolver)
Find annotations in classes in the supplied url of jar files. |
List<Class<?>> |
getClassesForAnnotation(Class<?> annotationClass)
|
List<Field> |
getFieldsForAnnotation(Class<?> annotation)
|
List<Method> |
getMethodsForAnnotation(Class<?> annotationClass)
|
static String |
normalize(String name)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnnotationFinder()
Method Detail |
---|
public static String normalize(String name)
public static Class convertType(org.objectweb.asm.Type t) throws Exception
Exception
public static Class[] convertTypes(org.objectweb.asm.Type[] types) throws Exception
Exception
public void find(String className, ClassNameResolver resolver) throws Exception
Exception
public void find(String[] classNames, ClassNameResolver resolver) throws Exception
Exception
public void find(List<String> classNames, ClassNameResolver resolver) throws Exception
Exception
public void find(Resource dir, ClassNameResolver resolver) throws Exception
Exception
public void find(ClassLoader loader, boolean visitParents, boolean nullInclusive, ClassNameResolver resolver) throws Exception
loader
- visitParents
- jarNamePattern
- nullInclusive
- resolver
-
Exception
public void find(URI[] uris, ClassNameResolver resolver) throws Exception
uris
- resolver
-
Exception
protected boolean excludeClass(String name)
AnnotationFinder
can implement this method to exclude
classes by name.
name
-
public List<Class<?>> getClassesForAnnotation(Class<?> annotationClass) throws Exception
Exception
public List<Method> getMethodsForAnnotation(Class<?> annotationClass) throws Exception
Exception
public List<Field> getFieldsForAnnotation(Class<?> annotation) throws Exception
Exception
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |