| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader | |
| private boolean | |
| private final Map | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | ReflectorLoader(ClassLoader
the parent loader. This should never be null! parent)creates a ReflectorLoader. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized Class | Returns: the generated classof the Reflector name, byte[] the bytecode bytecode, ProtectionDomain the protection domain domain)helper method to define Reflector classes. |
| protected Class | Returns: the class if foundThe binary name of the class name)Overrides java. |
| public synchronized Class | Returns: the Reflector class if defined else null.of the Reflector class name)try to load one of the defined Reflector classes by name. |
| pack-priv static String | |
| protected synchronized Class | loadClass(String
of the class to load name, boolean is true if the class should be resolved resolve)Overrides java. |
| delegatationLoader | back to summary |
|---|---|
| private final ClassLoader delegatationLoader | |
| inDefine | back to summary |
|---|---|
| private boolean inDefine | |
| loadedClasses | back to summary |
|---|---|
| private final Map<K, V> loadedClasses | |
| REFLECTOR | back to summary |
|---|---|
| private static final String REFLECTOR | |
| ReflectorLoader | back to summary |
|---|---|
| public ReflectorLoader(ClassLoader parent) creates a ReflectorLoader.
| |
| defineClass | back to summary |
|---|---|
| public synchronized Class helper method to define Reflector classes.
| |
| findClass | back to summary |
|---|---|
| protected Class Overrides java. Tries to find a Groovy class.
| |
| getLoadedClass | back to summary |
|---|---|
| public synchronized Class try to load one of the defined Reflector classes by name. | |
| getReflectorName | back to summary |
|---|---|
| pack-priv static String getReflectorName(Class<T> theClass) | |
| loadClass | back to summary |
|---|---|
| protected synchronized Class Overrides java. Loads a class per name. Unlike a normal loadClass this version behaves different during a class definition. In that case it checks if the class we want to load is Reflector and returns class if the check is successful. If it is not during a class definition it just calls the super class version of loadClass.
| |