Top Description Fields Constructors Methods
com.google.inject.internal.aop

pack-priv final Class AnonymousClassDefiner

extends Object
implements ClassDefiner
Class Inheritance
All Implemented Interfaces
com.google.inject.internal.aop.ClassDefiner
Imports
java.lang.reflect.Method

ClassDefiner that defines classes using sun.misc.Unsafe#defineAnonymousClass.
Author
[email protected] (Stuart McCulloch)

Field Summary

Modifier and TypeField and Description
private static final Method
private static final sun.misc.Unsafe

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Class<?>
define(Class<?> hostClass, byte[] bytecode)

Implements com.google.inject.internal.aop.ClassDefiner.define.

Defines a new class relative to the host.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ANONYMOUS_DEFINE_METHODback to summary
private static final Method ANONYMOUS_DEFINE_METHOD
THE_UNSAFEback to summary
private static final sun.misc.Unsafe THE_UNSAFE

Constructor Detail

AnonymousClassDefinerback to summary
pack-priv AnonymousClassDefiner()

Method Detail

defineback to summary
public Class<?> define(Class<?> hostClass, byte[] bytecode) throws Exception

Implements com.google.inject.internal.aop.ClassDefiner.define.

Doc from com.google.inject.internal.aop.ClassDefiner.define.

Defines a new class relative to the host.

Annotations
@Override