I am most familiar with B31.1, and B31.3 - both of which have provisions for non-metallic piping - you have to be a little careful though on B31.1 with FRP
Pretty much the code defines the stress analysis, while the material defines the properties (strength, thermal expansion, ....)