Class CachedReturnPlugin$long

java.lang.Object
net.bytebuddy.build.CachedReturnPlugin$long

class CachedReturnPlugin$long extends Object
An advice class for caching a long value.
  • Constructor Details

    • CachedReturnPlugin$long

      private CachedReturnPlugin$long()
      A constructor that prohibits the instantiation of the class.
  • Method Details

    • enter

      @OnMethodEnter(skipOn=OnNonDefaultValue.class) protected static long enter(long 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) long returned, long cached)
      The exit advice.
      Parameters:
      returned - The value that was returned by the method's execution or 0 if it was not executed.
      cached - The previously cached value or 0 if no previous value exists.