Package net.bytebuddy.build
Class CachedReturnPlugin$byte
- java.lang.Object
-
- net.bytebuddy.build.CachedReturnPlugin$byte
-
class CachedReturnPlugin$byte extends java.lang.ObjectAn advice class for caching abytevalue.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCachedReturnPlugin$byte()A constructor that prohibits the instantiation of the class.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static byteenter(byte cached)The enter advice.protected static voidexit(byte returned, byte cached)The exit advice.
-
-
-
Method Detail
-
enter
@OnMethodEnter(skipOn=OnNonDefaultValue.class) protected static byte enter(byte cached)
The enter advice.- Parameters:
cached- The cached field's value.- Returns:
trueif a cached value exists.
-
exit
@OnMethodExit protected static void exit(@Return(readOnly=false) byte returned, byte cached)
The exit advice.- Parameters:
returned- The value that was returned by the method's execution or0if it was not executed.cached- The previously cached value or0if no previous value exists.
-
-