public class ApplicationClasses extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationClasses.ApplicationClass
Represent a application class
|
Constructor and Description |
---|
ApplicationClasses() |
Modifier and Type | Method and Description |
---|---|
void |
add(ApplicationClasses.ApplicationClass applicationClass)
Put a new class to the cache.
|
List<ApplicationClasses.ApplicationClass> |
all()
All loaded classes.
|
void |
clear()
Clear the classes cache
|
List<ApplicationClasses.ApplicationClass> |
getAnnotatedClasses(Class<? extends Annotation> clazz)
Retrieve all application classes with a specific annotation.
|
ApplicationClasses.ApplicationClass |
getApplicationClass(String name)
Get a class by name
|
List<ApplicationClasses.ApplicationClass> |
getAssignableClasses(Class<?> clazz)
Retrieve all application classes assignable to this class.
|
static VirtualFile |
getJava(String name)
Retrieve the corresponding source file for a given class name.
|
boolean |
hasClass(String name)
Does this class is already loaded ?
|
void |
remove(ApplicationClasses.ApplicationClass applicationClass)
Remove a class from cache
|
void |
remove(String applicationClass) |
String |
toString() |
public void clear()
public ApplicationClasses.ApplicationClass getApplicationClass(String name)
name
- The fully qualified class namepublic List<ApplicationClasses.ApplicationClass> getAssignableClasses(Class<?> clazz)
clazz
- The superclass, or the interface.public List<ApplicationClasses.ApplicationClass> getAnnotatedClasses(Class<? extends Annotation> clazz)
clazz
- The annotation class.public List<ApplicationClasses.ApplicationClass> all()
public void add(ApplicationClasses.ApplicationClass applicationClass)
public void remove(ApplicationClasses.ApplicationClass applicationClass)
public void remove(String applicationClass)
public boolean hasClass(String name)
name
- The fully qualified class namepublic static VirtualFile getJava(String name)
name
- The fully qualified class nameGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly