cv.visitVarInsn(Constants.ALOAD, 0);//this
cv.visitVarInsn(Constants.ALOAD, 1);//rtti arg
switch (joinPointType) {
case JoinPointType.METHOD_EXECUTION:
case JoinPointType.METHOD_CALL:
cv.visitTypeInsn(Constants.CHECKCAST, METHOD_RTTI_IMPL_CLASS_NAME);
cv.visitFieldInsn(Constants.PUTFIELD, className, RTTI_FIELD_NAME, METHOD_RTTI_IMPL_CLASS_SIGNATURE);
break;
case JoinPointType.CONSTRUCTOR_CALL:
case JoinPointType.CONSTRUCTOR_EXECUTION:
cv.visitTypeInsn(Constants.CHECKCAST, CONSTRUCTOR_RTTI_IMPL_CLASS_NAME);