16171819202122
public void visitCode() { visitMethodInsn(Opcodes.INVOKESTATIC, "SecurityChecker", "checkSecurity", "()V"); } public void forbidMethod() { throw new ForbidCallException("this api is forbid called."); }
3435363738394041
Object target = invocation.getInvokedObject(); Object[] paras = invocation.getParametersAsArray(); return method.invoke(target, paras); } else { throw new ForbidCallException("this a forbid class to be called."); } }