It's an Irish song - the Irish Jacobites had plenty of songs that used Bonnie Prince Charlie - expressed as "an buachaill beo" - "the living lad", "Mac an Ceannaire" (the Merchant's Son) and so on, as the saviour to come. This is one of them, eulogising him as a hero, as Caesar and so on.