public static class MethodVariableAccess.TypeCastingHandler.ForBridgeTarget extends Object implements MethodVariableAccess.TypeCastingHandler
MethodVariableAccess.TypeCastingHandler
that casts all parameters that are loaded for a method to their target method's type.MethodVariableAccess.TypeCastingHandler.ForBridgeTarget, MethodVariableAccess.TypeCastingHandler.NoOp
Constructor and Description |
---|
ForBridgeTarget(MethodDescription targetMethod)
Creates a new type casting handler for a bridge method.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
StackManipulation |
wrapNext(StackManipulation variableAccess,
TypeDescription parameterType)
Returns the given stack manipulation while possibly wrapping the operation by a type casting
if this is required.
|
public ForBridgeTarget(MethodDescription targetMethod)
targetMethod
- The target of the bridge method.public StackManipulation wrapNext(StackManipulation variableAccess, TypeDescription parameterType)
MethodVariableAccess.TypeCastingHandler
wrapNext
in interface MethodVariableAccess.TypeCastingHandler
variableAccess
- The stack manipulation that represents the variable access.parameterType
- The type of the loaded variable that is represented by the stack manipulation.Copyright © 2014–2015. All rights reserved.