Class MethodVariableAccess.MethodLoading.TypeCastingHandler.ForBridgeTarget

    • Field Detail

      • bridgeTarget

        private final MethodDescription bridgeTarget
        The target of the method bridge.
    • Constructor Detail

      • ForBridgeTarget

        public ForBridgeTarget​(MethodDescription bridgeTarget)
        Creates a new type casting handler for a bridge target.
        Parameters:
        bridgeTarget - The target of the method bridge.
    • Method Detail

      • ofIndex

        public StackManipulation ofIndex​(TypeDescription parameterType,
                                         int index)
        Yields a stack transformation to transform the given argument of the method for which the arguments are loaded onto the operand stack.
        Specified by:
        ofIndex in interface MethodVariableAccess.MethodLoading.TypeCastingHandler
        Parameters:
        parameterType - The parameter type that is to be transformed.
        index - The index of the transformed parameter.
        Returns:
        A transformation to apply after loading the parameter onto the operand stack.