static JSType createType ( boolean shouldCreate , JSTypeRegistry registry , JSTypeNative typeName ) { if ( ! shouldCreate ) { return null ; } return registry . getNativeType ( typeName ) ; }
Returns the JSType as specified by the typeName . Returns null if shouldCreate is false .