Package com.google.inject.internal.aop
Class ClassDefining
java.lang.Object
com.google.inject.internal.aop.ClassDefining
Entry-point for defining dynamically generated classes.
- Author:
- mcculls@gmail.com (Stuart McCulloch)
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canDowncastToProxy
(Class<?> hostClass) Returns true if it's possible to downcast to proxies defined from the given host.static boolean
canLoadProxyByName
(Class<?> hostClass) Returns true if it's possible to load by name proxies defined from the given host.static Class
<?> Defines a new class relative to the host.static boolean
Returns true if the current class definer allows access to package-private members.
-
Method Details
-
define
Defines a new class relative to the host.- Throws:
Exception
-
hasPackageAccess
public static boolean hasPackageAccess()Returns true if the current class definer allows access to package-private members. -
canLoadProxyByName
Returns true if it's possible to load by name proxies defined from the given host. -
canDowncastToProxy
Returns true if it's possible to downcast to proxies defined from the given host.
-