Package net.bytebuddy.build
Class CachedReturnPlugin$double
- java.lang.Object
-
- net.bytebuddy.build.CachedReturnPlugin$double
-
class CachedReturnPlugin$double extends java.lang.Object
An advice class for caching adouble
value.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CachedReturnPlugin$double()
A constructor that prohibits the instantiation of the class.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static double
enter(double cached)
The enter advice.protected static void
exit(double returned, double cached)
The exit advice.
-
-
-
Method Detail
-
enter
@OnMethodEnter(skipOn=OnNonDefaultValue.class) protected static double enter(double cached)
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) double returned, double 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.
-
-