public class ApplicationClasses
extends java.lang.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.
|
java.util.List<ApplicationClasses.ApplicationClass> |
all()
All loaded classes.
|
void |
clear()
Clear the classes cache
|
java.util.List<ApplicationClasses.ApplicationClass> |
getAnnotatedClasses(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Retrieve all application classes with a specific annotation.
|
ApplicationClasses.ApplicationClass |
getApplicationClass(java.lang.String name)
Get a class by name
|
java.util.List<ApplicationClasses.ApplicationClass> |
getAssignableClasses(java.lang.Class<?> clazz)
Retrieve all application classes assignable to this class.
|
static VirtualFile |
getJava(java.lang.String name)
Retrieve the corresponding source file for a given class name.
|
boolean |
hasClass(java.lang.String name)
Does this class is already loaded ?
|
void |
remove(ApplicationClasses.ApplicationClass applicationClass)
Remove a class from cache
|
void |
remove(java.lang.String applicationClass)
Remove a class from cache
|
java.lang.String |
toString() |
public void clear()
public ApplicationClasses.ApplicationClass getApplicationClass(java.lang.String name)
name
- The fully qualified class namepublic java.util.List<ApplicationClasses.ApplicationClass> getAssignableClasses(java.lang.Class<?> clazz)
clazz
- The superclass, or the interface.public java.util.List<ApplicationClasses.ApplicationClass> getAnnotatedClasses(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
clazz
- The annotation class.public java.util.List<ApplicationClasses.ApplicationClass> all()
public void add(ApplicationClasses.ApplicationClass applicationClass)
applicationClass
- The class to addpublic void remove(ApplicationClasses.ApplicationClass applicationClass)
applicationClass
- The class to removepublic void remove(java.lang.String applicationClass)
applicationClass
- The class name to removepublic boolean hasClass(java.lang.String name)
name
- The fully qualified class namepublic static VirtualFile getJava(java.lang.String name)
name
- The fully qualified class namepublic java.lang.String toString()
toString
in class java.lang.Object
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly