*
* @param cv
* @param adviceMethodInfo
*/
public void createAfterAdviceArgumentHandling(final CodeVisitor cv, final AdviceMethodInfo adviceMethodInfo) {
final AdviceType adviceType = adviceMethodInfo.getAdviceInfo().getType();
final int specialArgumentIndex = adviceMethodInfo.getSpecialArgumentIndex();
final String specialArgumentTypeName = adviceMethodInfo.getSpecialArgumentTypeName();
if (adviceType.equals(AdviceType.AFTER_RETURNING) ||
adviceType.equals(AdviceType.AFTER_THROWING)) {
cv.visitVarInsn(ALOAD, specialArgumentIndex);
cv.visitTypeInsn(CHECKCAST, specialArgumentTypeName);
}
}