there are no terrorists in gaza. no one who acts in self defence is a terrorist.
Any one who launches rockets against civilian settlements is a terrorist. That includes the Hamas members, and the IDF (if they deliberately targeted the civilian areas inside Gaza).