Package com.google.inject.internal.aop
Class ClassDefining
- java.lang.Object
-
- com.google.inject.internal.aop.ClassDefining
-
public final class ClassDefining extends java.lang.ObjectEntry-point for defining dynamically generated classes.- Author:
- mcculls@gmail.com (Stuart McCulloch)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanDowncastToProxy(java.lang.Class<?> hostClass)Returns true if it's possible to downcast to proxies defined from the given host.static booleancanLoadProxyByName(java.lang.Class<?> hostClass)Returns true if it's possible to load by name proxies defined from the given host.static java.lang.Class<?>define(java.lang.Class<?> hostClass, byte[] bytecode)Defines a new class relative to the host.static booleanhasPackageAccess()Returns true if the current class definer allows access to package-private members.
-
-
-
Method Detail
-
define
public static java.lang.Class<?> define(java.lang.Class<?> hostClass, byte[] bytecode) throws java.lang.ExceptionDefines a new class relative to the host.- Throws:
java.lang.Exception
-
hasPackageAccess
public static boolean hasPackageAccess()
Returns true if the current class definer allows access to package-private members.
-
canLoadProxyByName
public static boolean canLoadProxyByName(java.lang.Class<?> hostClass)
Returns true if it's possible to load by name proxies defined from the given host.
-
canDowncastToProxy
public static boolean canDowncastToProxy(java.lang.Class<?> hostClass)
Returns true if it's possible to downcast to proxies defined from the given host.
-
-