Package com.google.inject.internal.aop
Class ClassBuilding
java.lang.Object
com.google.inject.internal.aop.ClassBuilding
Entry-point for building enhanced classes and 'fast-class' invocation.
- Author:
- mcculls@gmail.com (Stuart McCulloch)
-
Method Summary
Modifier and TypeMethodDescriptionstatic BytecodeGen.EnhancerBuilder
buildEnhancerBuilder
(Class<?> hostClass) Builder of enhancers that provide method interception via bytecode generation.buildFastClass
(Class<?> hostClass) Builds a 'fast-class' invoker that uses bytecode generation in place of reflection.static boolean
canEnhance
(Executable member) Returns true if the given member can be enhanced using bytecode.static boolean
canFastInvoke
(Executable member) Returns true if the given member can be fast-invoked.static String
signature
(Constructor<?> constructor) Minimum signature needed to disambiguate constructors from the same host class.static String
Minimum signature needed to disambiguate methods from the same host class.
-
Method Details
-
signature
Minimum signature needed to disambiguate constructors from the same host class. -
signature
Minimum signature needed to disambiguate methods from the same host class. -
canEnhance
Returns true if the given member can be enhanced using bytecode. -
buildEnhancerBuilder
Builder of enhancers that provide method interception via bytecode generation. -
canFastInvoke
Returns true if the given member can be fast-invoked. -
buildFastClass
public static Function<String,BiFunction<Object, buildFastClassObject[], Object>> (Class<?> hostClass) Builds a 'fast-class' invoker that uses bytecode generation in place of reflection.
-