Top Description Constructors Methods
com.google.inject.util

public final Class Enhanced

extends Object
Class Inheritance
Imports
com.google.inject.internal.BytecodeGen, java.util.Optional

Utilities for checking if classes are enhanced and/or getting the original un-enhanced class.
Since
6.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
isEnhanced(Class<?> clazz)

Returns true if this is a class that Guice enhanced with AOP functionality.

public static <T> Optional<Class<? super T>>
unenhancedClass(Class<T> clazz)

If the input class is a class that isEnhanced is true for, returns the un-enhanced version of the class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Enhancedback to summary
private Enhanced()

Method Detail

isEnhancedback to summary
public static boolean isEnhanced(Class<?> clazz)

Returns true if this is a class that Guice enhanced with AOP functionality.

unenhancedClassback to summary
public static <T> Optional<Class<? super T>> unenhancedClass(Class<T> clazz)

If the input class is a class that isEnhanced is true for, returns the un-enhanced version of the class. Otherwise returns an empty optional.