The present invention relates to cyclic compounds of formula II and salts thereof, to methods of using such compounds in treating protein tyrosine kinase-associated disorders such as immunologic and oncologic disorders, and to pharmaceutical compositions containing such compounds.