Package com.google.inject.internal.aop
Class ClassDefining
- java.lang.Object
-
- com.google.inject.internal.aop.ClassDefining
-
public final class ClassDefining extends Object
Entry-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 Class<?>
define(Class<?> hostClass, byte[] bytecode)
Defines a new class relative to the host.static boolean
hasPackageAccess()
Returns true if the ClassDefiner has access to package-private members.static boolean
isAnonymousHost(Class<?> hostClass)
Does the given class host new types anonymously, meaning they are not visible by name?
-
-
-
Method Detail
-
define
public static Class<?> define(Class<?> hostClass, byte[] bytecode) throws Exception
Defines a new class relative to the host.- Throws:
Exception
-
hasPackageAccess
public static boolean hasPackageAccess()
Returns true if the ClassDefiner has access to package-private members.
-
isAnonymousHost
public static boolean isAnonymousHost(Class<?> hostClass)
Does the given class host new types anonymously, meaning they are not visible by name?
-
-