Package net.bytebuddy.build
Class CachedReturnPlugin$Object
java.lang.Object
net.bytebuddy.build.CachedReturnPlugin$Object
An advice class for caching a reference value.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
A constructor that prohibits the instantiation of the class. -
Method Summary
-
Constructor Details
-
CachedReturnPlugin$Object
private CachedReturnPlugin$Object()A constructor that prohibits the instantiation of the class.
-
-
Method Details
-
enter
The enter advice.- Parameters:
cached
- The cached field's value.- Returns:
true
if a cached value exists.
-
exit
@OnMethodExit protected static void exit(@Return(readOnly=false,typing=DYNAMIC) Object returned, Object cached) The exit advice.- Parameters:
returned
- The value that was returned by the method's execution or0
if it was not executed.cached
- The previously cached value or0
if no previous value exists.
-