Package com.google.inject.internal.aop
Class ClassBuilding
- java.lang.Object
-
- com.google.inject.internal.aop.ClassBuilding
-
public final class ClassBuilding extends Object
Entry-point for building enhanced classes and 'fast-class' invocation.- Author:
- mcculls@gmail.com (Stuart McCulloch)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BytecodeGen.EnhancerBuilder
buildEnhancerBuilder(Class<?> hostClass)
Builder of enhancers that provide method interception via bytecode generation.static Function<String,BiFunction<Object,Object[],Object>>
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
signature(Method method)
Minimum signature needed to disambiguate methods from the same host class.
-
-
-
Method Detail
-
signature
public static String signature(Constructor<?> constructor)
Minimum signature needed to disambiguate constructors from the same host class.
-
signature
public static String signature(Method method)
Minimum signature needed to disambiguate methods from the same host class.
-
canEnhance
public static boolean canEnhance(Executable member)
Returns true if the given member can be enhanced using bytecode.
-
buildEnhancerBuilder
public static BytecodeGen.EnhancerBuilder buildEnhancerBuilder(Class<?> hostClass)
Builder of enhancers that provide method interception via bytecode generation.
-
canFastInvoke
public static boolean canFastInvoke(Executable member)
Returns true if the given member can be fast-invoked.
-
-