PatchInterceptAdvice
class PatchInterceptAdvice
Head-side decision: rewrite arguments, or skip the body and return a substitute.
Both ends are woven, but only enter calls the bridge — skipOn is just a jump, and ByteBuddy forbids writing the return value from enter advice, so exit exists only to move the decision into the return slot. The callback still fires once, at the head.
See also
for the return-side decision
Functions
Link copied to clipboard
open fun enter(slot: Int, key: String, @Advice.Origin sig: MethodType, @Advice.This(optional = true
Read once into a local, hand that to the bridge, store it back — none of which is decoration.