This file is indexed.

/usr/share/doc/libclosure-compiler-java/api/com/google/javascript/rhino/jstype/JSType.html is in libclosure-compiler-java-doc 20130227+dfsg1-9.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html>
<head>
<!-- Generated by javadoc -->
<title>JSType (Closure Compiler)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="JSType (Closure Compiler)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":6,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":9,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10,"i83":10,"i84":10,"i85":10,"i86":10,"i87":9,"i88":10,"i89":9,"i90":10,"i91":9,"i92":10,"i93":10,"i94":10,"i95":10,"i96":6};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/javascript/rhino/jstype/JSType.html" target="_top">Frames</a></li>
<li><a href="JSType.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.google.javascript.rhino.jstype</div>
<h2 title="Class JSType" class="title">Class JSType</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.google.javascript.rhino.jstype.JSType</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable</dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../com/google/javascript/rhino/jstype/AllType.html" title="class in com.google.javascript.rhino.jstype">AllType</a>, <a href="../../../../../com/google/javascript/rhino/jstype/BooleanType.html" title="class in com.google.javascript.rhino.jstype">BooleanType</a>, <a href="../../../../../com/google/javascript/rhino/jstype/NullType.html" title="class in com.google.javascript.rhino.jstype">NullType</a>, <a href="../../../../../com/google/javascript/rhino/jstype/NumberType.html" title="class in com.google.javascript.rhino.jstype">NumberType</a>, <a href="../../../../../com/google/javascript/rhino/jstype/ObjectType.html" title="class in com.google.javascript.rhino.jstype">ObjectType</a>, <a href="../../../../../com/google/javascript/rhino/jstype/StringType.html" title="class in com.google.javascript.rhino.jstype">StringType</a>, <a href="../../../../../com/google/javascript/rhino/jstype/UnionType.html" title="class in com.google.javascript.rhino.jstype">UnionType</a>, <a href="../../../../../com/google/javascript/rhino/jstype/VoidType.html" title="class in com.google.javascript.rhino.jstype">VoidType</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">JSType</span>
extends java.lang.Object
implements java.io.Serializable</pre>
<div class="block">Represents JavaScript value types.<p>

 Types are split into two separate families: value types and object types.

 A special <a href="../../../../../com/google/javascript/rhino/jstype/UnknownType.html" title="class in com.google.javascript.rhino.jstype"><code>UnknownType</code></a> exists to represent a wildcard type on which
 no information can be gathered. In particular, it can assign to everyone,
 is a subtype of everyone (and everyone is a subtype of it).<p>

 If you remove the <a href="../../../../../com/google/javascript/rhino/jstype/UnknownType.html" title="class in com.google.javascript.rhino.jstype"><code>UnknownType</code></a>, the set of types in the type system
 forms a lattice with the <a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isSubtype-com.google.javascript.rhino.jstype.JSType-"><code>isSubtype(com.google.javascript.rhino.jstype.JSType)</code></a> relation defining the partial
 order of types. All types are united at the top of the lattice by the
 <a href="../../../../../com/google/javascript/rhino/jstype/AllType.html" title="class in com.google.javascript.rhino.jstype"><code>AllType</code></a> and at the bottom by the <a href="../../../../../com/google/javascript/rhino/jstype/NoType.html" title="class in com.google.javascript.rhino.jstype"><code>NoType</code></a>.<p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../serialized-form.html#com.google.javascript.rhino.jstype.JSType">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#EMPTY_TYPE_COMPONENT">EMPTY_TYPE_COMPONENT</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#ENUMDECL">ENUMDECL</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#NOT_A_CLASS">NOT_A_CLASS</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#NOT_A_TYPE">NOT_A_TYPE</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#NOT_ENUMDECL">NOT_ENUMDECL</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../com/google/javascript/rhino/jstype/TemplateTypeMap.html" title="class in com.google.javascript.rhino.jstype">TemplateTypeMap</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#templateTypeMap">templateTypeMap</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#UNKNOWN_NAME">UNKNOWN_NAME</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#autobox--">autobox</a></span>()</code>
<div class="block">Dereference a type for property access.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#autoboxesTo--">autoboxesTo</a></span>()</code>
<div class="block">Turn a scalar type to the corresponding object type.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#canBeCalled--">canBeCalled</a></span>()</code>
<div class="block">This predicate is used to test whether a given type can be used as the
 'function' in a function call.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#canCastTo-com.google.javascript.rhino.jstype.JSType-">canCastTo</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Tests whether values of <code>this</code> type can be safely assigned
 to values of <code>that</code> type.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#canTestForEqualityWith-com.google.javascript.rhino.jstype.JSType-">canTestForEqualityWith</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Tests whether <code>this</code> and <code>that</code> are meaningfully
 comparable.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#canTestForShallowEqualityWith-com.google.javascript.rhino.jstype.JSType-">canTestForShallowEqualityWith</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Tests whether <code>this</code> and <code>that</code> are meaningfully
 comparable using shallow comparison.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#clearResolved--">clearResolved</a></span>()</code>
<div class="block">Clears the resolved field.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#collapseUnion--">collapseUnion</a></span>()</code>
<div class="block">Gets the least supertype of this that's not a union.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/ObjectType.html" title="class in com.google.javascript.rhino.jstype">ObjectType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#dereference--">dereference</a></span>()</code>
<div class="block">Dereference a type for property access.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#differsFrom-com.google.javascript.rhino.jstype.JSType-">differsFrom</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Whether this type is meaningfully different from <code>that</code> type for
 the purposes of data flow analysis.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;jsType)</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#findPropertyType-java.lang.String-">findPropertyType</a></span>(java.lang.String&nbsp;propertyName)</code>
<div class="block">Coerces this type to an Object type, then gets the type of the property
 whose name is given.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#forceResolve-com.google.javascript.rhino.ErrorReporter-com.google.javascript.rhino.jstype.StaticScope-">forceResolve</a></span>(<a href="../../../../../com/google/javascript/rhino/ErrorReporter.html" title="interface in com.google.javascript.rhino">ErrorReporter</a>&nbsp;t,
            <a href="../../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;&nbsp;scope)</code>
<div class="block">Force this type to resolve, even if the registry is in a lazy
 resolving mode.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getDisplayName--">getDisplayName</a></span>()</code>
<div class="block">Returns a user meaningful label for the JSType instance.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getGreatestSubtype-com.google.javascript.rhino.jstype.JSType-">getGreatestSubtype</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Gets the greatest subtype of <code>this</code> and <code>that</code>.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/JSDocInfo.html" title="class in com.google.javascript.rhino">JSDocInfo</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getJSDocInfo--">getJSDocInfo</a></span>()</code>
<div class="block">Gets the docInfo for this type.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getLeastSupertype-com.google.javascript.rhino.jstype.JSType-">getLeastSupertype</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Gets the least supertype of <code>this</code> and <code>that</code>.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../../com/google/javascript/rhino/jstype/BooleanLiteralSet.html" title="enum in com.google.javascript.rhino.jstype">BooleanLiteralSet</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getPossibleToBooleanOutcomes--">getPossibleToBooleanOutcomes</a></span>()</code>
<div class="block">Computes the set of possible outcomes of the <code>ToBoolean</code> predicate
 for this type.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getRestrictedTypeGivenToBooleanOutcome-boolean-">getRestrictedTypeGivenToBooleanOutcome</a></span>(boolean&nbsp;outcome)</code>
<div class="block">Computes the restricted type of this type knowing that the
 <code>ToBoolean</code> predicate has a specific value.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/TemplateTypeMap.html" title="class in com.google.javascript.rhino.jstype">TemplateTypeMap</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getTemplateTypeMap--">getTemplateTypeMap</a></span>()</code>
<div class="block">Returns the template type map associated with this type.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getTypesUnderEquality-com.google.javascript.rhino.jstype.JSType-">getTypesUnderEquality</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Computes the subset of <code>this</code> and <code>that</code> types if equality
 is observed.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getTypesUnderInequality-com.google.javascript.rhino.jstype.JSType-">getTypesUnderInequality</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Computes the subset of <code>this</code> and <code>that</code> types if inequality
 is observed.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getTypesUnderShallowEquality-com.google.javascript.rhino.jstype.JSType-">getTypesUnderShallowEquality</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Computes the subset of <code>this</code> and <code>that</code> types under shallow
 equality.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getTypesUnderShallowInequality-com.google.javascript.rhino.jstype.JSType-">getTypesUnderShallowInequality</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Computes the subset of <code>this</code> and <code>that</code> types under
 shallow inequality.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#hasAnyTemplateTypes--">hasAnyTemplateTypes</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#hasDisplayName--">hasDisplayName</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#hashCode--">hashCode</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#hasProperty-java.lang.String-">hasProperty</a></span>(java.lang.String&nbsp;pname)</code>
<div class="block">Checks whether the property is present on the object.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isAllType--">isAllType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isArrayType--">isArrayType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isBooleanObjectType--">isBooleanObjectType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isBooleanValueType--">isBooleanValueType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isCheckedUnknownType--">isCheckedUnknownType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isConstructor--">isConstructor</a></span>()</code>
<div class="block">Whether this type is a <a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype"><code>FunctionType</code></a> that is a constructor or a
 named type that points to such a type.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isDateType--">isDateType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isDict--">isDict</a></span>()</code>
<div class="block">Returns true iff <code>this</code> can be a <code>dict</code>.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isEmptyType--">isEmptyType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isEnumElementType--">isEnumElementType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isEnumType--">isEnumType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isEquivalent-com.google.javascript.rhino.jstype.JSType-com.google.javascript.rhino.jstype.JSType-">isEquivalent</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;typeA,
            <a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;typeB)</code>&nbsp;</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isEquivalentTo-com.google.javascript.rhino.jstype.JSType-">isEquivalentTo</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Checks if two types are equivalent.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isFunctionPrototypeType--">isFunctionPrototypeType</a></span>()</code>
<div class="block">Whether this is the prototype of a function.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isFunctionType--">isFunctionType</a></span>()</code>
<div class="block">Returns true if toMaybeFunctionType returns a non-null FunctionType.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isGlobalThisType--">isGlobalThisType</a></span>()</code>
<div class="block">Returns true if this is a global this type.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isInstanceType--">isInstanceType</a></span>()</code>
<div class="block">Whether this type is an Instance object of some constructor.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isInterface--">isInterface</a></span>()</code>
<div class="block">Whether this type is a <a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype"><code>FunctionType</code></a> that is an interface or a named
 type that points to such a type.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isInvariant-com.google.javascript.rhino.jstype.JSType-">isInvariant</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Checks if two types are invariant.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNominalConstructor--">isNominalConstructor</a></span>()</code>
<div class="block">Whether this type is the original constructor of a nominal type.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNominalType--">isNominalType</a></span>()</code>
<div class="block">Whether this type is a nominal type (a named instance object or
 a named enum).</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNoObjectType--">isNoObjectType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNoResolvedType--">isNoResolvedType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNoType--">isNoType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNullable--">isNullable</a></span>()</code>
<div class="block">Tests whether this type is nullable.</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNullType--">isNullType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNumber--">isNumber</a></span>()</code>
<div class="block">Tests whether the type is a number (value or Object).</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNumberObjectType--">isNumberObjectType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isNumberValueType--">isNumberValueType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isObject--">isObject</a></span>()</code>
<div class="block">Tests whether this type is an <code>Object</code>, or any subtype thereof.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isOrdinaryFunction--">isOrdinaryFunction</a></span>()</code>
<div class="block">Whether this type is a <a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype"><code>FunctionType</code></a> that is an ordinary function or
 a named type that points to such a type.</div>
</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isRecordType--">isRecordType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isRegexpType--">isRegexpType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isResolved--">isResolved</a></span>()</code>
<div class="block">Whether the type has been resolved.</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isString--">isString</a></span>()</code>
<div class="block">Tests whether the type is a string (value or Object).</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isStringObjectType--">isStringObjectType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isStringValueType--">isStringValueType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isStruct--">isStruct</a></span>()</code>
<div class="block">Returns true iff <code>this</code> can be a <code>struct</code>.</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isSubtype-com.google.javascript.rhino.jstype.JSType-">isSubtype</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Checks whether <code>this</code> is a subtype of <code>that</code>.</div>
</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isTemplateType--">isTemplateType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isTemplatizedType--">isTemplatizedType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isUnionType--">isUnionType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isUnknownType--">isUnknownType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isVoidType--">isVoidType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#matchConstraint-com.google.javascript.rhino.jstype.JSType-">matchConstraint</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;constraint)</code>
<div class="block">Modify this type so that it matches the specified type.</div>
</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#matchesInt32Context--">matchesInt32Context</a></span>()</code>
<div class="block">This predicate is used to test whether a given type can appear in a
 'Int32' context.</div>
</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#matchesNumberContext--">matchesNumberContext</a></span>()</code>
<div class="block">This predicate is used to test whether a given type can appear in a
 numeric context, such as an operand of a multiply operator.</div>
</td>
</tr>
<tr id="i75" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#matchesObjectContext--">matchesObjectContext</a></span>()</code>
<div class="block">This predicate is used to test whether a given type can appear in an
 <code>Object</code> context, such as the expression in a with statement.</div>
</td>
</tr>
<tr id="i76" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#matchesStringContext--">matchesStringContext</a></span>()</code>
<div class="block">This predicate is used to test whether a given type can appear in a
 <code>String</code> context, such as an operand of a string concat (+) operator.</div>
</td>
</tr>
<tr id="i77" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#matchesUint32Context--">matchesUint32Context</a></span>()</code>
<div class="block">This predicate is used to test whether a given type can appear in a
 'Uint32' context.</div>
</td>
</tr>
<tr id="i78" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#resolve-com.google.javascript.rhino.ErrorReporter-com.google.javascript.rhino.jstype.StaticScope-">resolve</a></span>(<a href="../../../../../com/google/javascript/rhino/ErrorReporter.html" title="interface in com.google.javascript.rhino">ErrorReporter</a>&nbsp;t,
       <a href="../../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;&nbsp;scope)</code>
<div class="block">Resolve this type in the given scope.</div>
</td>
</tr>
<tr id="i79" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#restrictByNotNullOrUndefined--">restrictByNotNullOrUndefined</a></span>()</code>
<div class="block">If this is a union type, returns a union type that does not include
 the null or undefined type.</div>
</td>
</tr>
<tr id="i80" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#setValidator-com.google.common.base.Predicate-">setValidator</a></span>(com.google.common.base.Predicate&lt;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;&nbsp;validator)</code>
<div class="block">Certain types have constraints on them at resolution-time.</div>
</td>
</tr>
<tr id="i81" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/TernaryValue.html" title="enum in com.google.javascript.rhino.jstype">TernaryValue</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#testForEquality-com.google.javascript.rhino.jstype.JSType-">testForEquality</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</code>
<div class="block">Compares <code>this</code> and <code>that</code>.</div>
</td>
</tr>
<tr id="i82" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toAnnotationString--">toAnnotationString</a></span>()</code>
<div class="block">A string representation of this type, suitable for printing
 in type annotations at code generation time.</div>
</td>
</tr>
<tr id="i83" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toDebugHashCodeString--">toDebugHashCodeString</a></span>()</code>
<div class="block">A hash code function for diagnosing complicated issues
 around type-identity.</div>
</td>
</tr>
<tr id="i84" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/EnumElementType.html" title="class in com.google.javascript.rhino.jstype">EnumElementType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeEnumElementType--">toMaybeEnumElementType</a></span>()</code>
<div class="block">Downcasts this to an EnumElementType, or returns null if this is not an EnumElementType.</div>
</td>
</tr>
<tr id="i85" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/EnumType.html" title="class in com.google.javascript.rhino.jstype">EnumType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeEnumType--">toMaybeEnumType</a></span>()</code>
<div class="block">Downcasts this to an EnumType, or returns null if this is not an EnumType.</div>
</td>
</tr>
<tr id="i86" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype">FunctionType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeFunctionType--">toMaybeFunctionType</a></span>()</code>
<div class="block">Downcasts this to a FunctionType, or returns null if this is not
 a function.</div>
</td>
</tr>
<tr id="i87" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype">FunctionType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeFunctionType-com.google.javascript.rhino.jstype.JSType-">toMaybeFunctionType</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;type)</code>
<div class="block">Null-safe version of toMaybeFunctionType().</div>
</td>
</tr>
<tr id="i88" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/TemplateType.html" title="class in com.google.javascript.rhino.jstype">TemplateType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeTemplateType--">toMaybeTemplateType</a></span>()</code>
<div class="block">Downcasts this to a TemplateType, or returns null if this is not
 a function.</div>
</td>
</tr>
<tr id="i89" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/javascript/rhino/jstype/TemplateType.html" title="class in com.google.javascript.rhino.jstype">TemplateType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeTemplateType-com.google.javascript.rhino.jstype.JSType-">toMaybeTemplateType</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;type)</code>
<div class="block">Null-safe version of toMaybeTemplateType().</div>
</td>
</tr>
<tr id="i90" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/TemplatizedType.html" title="class in com.google.javascript.rhino.jstype">TemplatizedType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeTemplatizedType--">toMaybeTemplatizedType</a></span>()</code>
<div class="block">Downcasts this to a TemplatizedType, or returns null if this is not
 a function.</div>
</td>
</tr>
<tr id="i91" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/javascript/rhino/jstype/TemplatizedType.html" title="class in com.google.javascript.rhino.jstype">TemplatizedType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeTemplatizedType-com.google.javascript.rhino.jstype.JSType-">toMaybeTemplatizedType</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;type)</code>
<div class="block">Null-safe version of toMaybeTemplatizedType().</div>
</td>
</tr>
<tr id="i92" class="altColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/UnionType.html" title="class in com.google.javascript.rhino.jstype">UnionType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toMaybeUnionType--">toMaybeUnionType</a></span>()</code>
<div class="block">Downcasts this to a UnionType, or returns null if this is not a UnionType.</div>
</td>
</tr>
<tr id="i93" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/ObjectType.html" title="class in com.google.javascript.rhino.jstype">ObjectType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toObjectType--">toObjectType</a></span>()</code>
<div class="block">Casts this to an ObjectType, or returns null if this is not an ObjectType.</div>
</td>
</tr>
<tr id="i94" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#toString--">toString</a></span>()</code>
<div class="block">A string representation of this type, suitable for printing
 in warnings.</div>
</td>
</tr>
<tr id="i95" class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#unboxesTo--">unboxesTo</a></span>()</code>
<div class="block">Turn an object type to its corresponding scalar type.</div>
</td>
</tr>
<tr id="i96" class="altColor">
<td class="colFirst"><code>abstract &lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#visit-com.google.javascript.rhino.jstype.Visitor-">visit</a></span>(<a href="../../../../../com/google/javascript/rhino/jstype/Visitor.html" title="interface in com.google.javascript.rhino.jstype">Visitor</a>&lt;T&gt;&nbsp;visitor)</code>
<div class="block">Visit this type with the given visitor.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="templateTypeMap">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>templateTypeMap</h4>
<pre>protected final&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/TemplateTypeMap.html" title="class in com.google.javascript.rhino.jstype">TemplateTypeMap</a> templateTypeMap</pre>
</li>
</ul>
<a name="UNKNOWN_NAME">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>UNKNOWN_NAME</h4>
<pre>public static final&nbsp;java.lang.String UNKNOWN_NAME</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.javascript.rhino.jstype.JSType.UNKNOWN_NAME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NOT_A_CLASS">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NOT_A_CLASS</h4>
<pre>public static final&nbsp;java.lang.String NOT_A_CLASS</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.javascript.rhino.jstype.JSType.NOT_A_CLASS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NOT_A_TYPE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NOT_A_TYPE</h4>
<pre>public static final&nbsp;java.lang.String NOT_A_TYPE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.javascript.rhino.jstype.JSType.NOT_A_TYPE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="EMPTY_TYPE_COMPONENT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EMPTY_TYPE_COMPONENT</h4>
<pre>public static final&nbsp;java.lang.String EMPTY_TYPE_COMPONENT</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.javascript.rhino.jstype.JSType.EMPTY_TYPE_COMPONENT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ENUMDECL">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ENUMDECL</h4>
<pre>public static final&nbsp;int ENUMDECL</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.javascript.rhino.jstype.JSType.ENUMDECL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NOT_ENUMDECL">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>NOT_ENUMDECL</h4>
<pre>public static final&nbsp;int NOT_ENUMDECL</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#com.google.javascript.rhino.jstype.JSType.NOT_ENUMDECL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getJSDocInfo--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getJSDocInfo</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/JSDocInfo.html" title="class in com.google.javascript.rhino">JSDocInfo</a>&nbsp;getJSDocInfo()</pre>
<div class="block">Gets the docInfo for this type. By default, documentation cannot be
 attached to arbitrary types. This must be overridden for
 programmer-defined types.</div>
</li>
</ul>
<a name="getDisplayName--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDisplayName</h4>
<pre>public&nbsp;java.lang.String&nbsp;getDisplayName()</pre>
<div class="block">Returns a user meaningful label for the JSType instance.  For example,
 Functions and Enums will return their declaration name (if they have one).
 Some types will not have a meaningful display name.  Calls to
 hasDisplayName() will return true IFF getDisplayName() will return null
 or a zero length string.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the display name of the type, or null if one is not available</dd>
</dl>
</li>
</ul>
<a name="hasDisplayName--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasDisplayName</h4>
<pre>public&nbsp;boolean&nbsp;hasDisplayName()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the JSType has a user meaningful label.</dd>
</dl>
</li>
</ul>
<a name="hasProperty-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasProperty</h4>
<pre>public&nbsp;boolean&nbsp;hasProperty(java.lang.String&nbsp;pname)</pre>
<div class="block">Checks whether the property is present on the object.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pname</code> - The property name.</dd>
</dl>
</li>
</ul>
<a name="isNoType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNoType</h4>
<pre>public&nbsp;boolean&nbsp;isNoType()</pre>
</li>
</ul>
<a name="isNoResolvedType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNoResolvedType</h4>
<pre>public&nbsp;boolean&nbsp;isNoResolvedType()</pre>
</li>
</ul>
<a name="isNoObjectType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNoObjectType</h4>
<pre>public&nbsp;boolean&nbsp;isNoObjectType()</pre>
</li>
</ul>
<a name="isEmptyType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmptyType</h4>
<pre>public final&nbsp;boolean&nbsp;isEmptyType()</pre>
</li>
</ul>
<a name="isNumberObjectType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumberObjectType</h4>
<pre>public&nbsp;boolean&nbsp;isNumberObjectType()</pre>
</li>
</ul>
<a name="isNumberValueType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumberValueType</h4>
<pre>public&nbsp;boolean&nbsp;isNumberValueType()</pre>
</li>
</ul>
<a name="isFunctionPrototypeType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isFunctionPrototypeType</h4>
<pre>public&nbsp;boolean&nbsp;isFunctionPrototypeType()</pre>
<div class="block">Whether this is the prototype of a function.</div>
</li>
</ul>
<a name="isStringObjectType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isStringObjectType</h4>
<pre>public&nbsp;boolean&nbsp;isStringObjectType()</pre>
</li>
</ul>
<a name="isStringValueType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isStringValueType</h4>
<pre>public&nbsp;boolean&nbsp;isStringValueType()</pre>
</li>
</ul>
<a name="isString--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isString</h4>
<pre>public final&nbsp;boolean&nbsp;isString()</pre>
<div class="block">Tests whether the type is a string (value or Object).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this &amp;lt;: (String, string)</code></dd>
</dl>
</li>
</ul>
<a name="isNumber--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumber</h4>
<pre>public final&nbsp;boolean&nbsp;isNumber()</pre>
<div class="block">Tests whether the type is a number (value or Object).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this &amp;lt;: (Number, number)</code></dd>
</dl>
</li>
</ul>
<a name="isArrayType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isArrayType</h4>
<pre>public&nbsp;boolean&nbsp;isArrayType()</pre>
</li>
</ul>
<a name="isBooleanObjectType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isBooleanObjectType</h4>
<pre>public&nbsp;boolean&nbsp;isBooleanObjectType()</pre>
</li>
</ul>
<a name="isBooleanValueType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isBooleanValueType</h4>
<pre>public&nbsp;boolean&nbsp;isBooleanValueType()</pre>
</li>
</ul>
<a name="isRegexpType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRegexpType</h4>
<pre>public&nbsp;boolean&nbsp;isRegexpType()</pre>
</li>
</ul>
<a name="isDateType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDateType</h4>
<pre>public&nbsp;boolean&nbsp;isDateType()</pre>
</li>
</ul>
<a name="isNullType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNullType</h4>
<pre>public&nbsp;boolean&nbsp;isNullType()</pre>
</li>
</ul>
<a name="isVoidType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isVoidType</h4>
<pre>public&nbsp;boolean&nbsp;isVoidType()</pre>
</li>
</ul>
<a name="isAllType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAllType</h4>
<pre>public&nbsp;boolean&nbsp;isAllType()</pre>
</li>
</ul>
<a name="isUnknownType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUnknownType</h4>
<pre>public&nbsp;boolean&nbsp;isUnknownType()</pre>
</li>
</ul>
<a name="isCheckedUnknownType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCheckedUnknownType</h4>
<pre>public&nbsp;boolean&nbsp;isCheckedUnknownType()</pre>
</li>
</ul>
<a name="isUnionType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUnionType</h4>
<pre>public final&nbsp;boolean&nbsp;isUnionType()</pre>
</li>
</ul>
<a name="isStruct--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isStruct</h4>
<pre>public&nbsp;boolean&nbsp;isStruct()</pre>
<div class="block">Returns true iff <code>this</code> can be a <code>struct</code>.
 UnionType overrides the method, assume <code>this</code> is not a union here.</div>
</li>
</ul>
<a name="isDict--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDict</h4>
<pre>public&nbsp;boolean&nbsp;isDict()</pre>
<div class="block">Returns true iff <code>this</code> can be a <code>dict</code>.
 UnionType overrides the method, assume <code>this</code> is not a union here.</div>
</li>
</ul>
<a name="toMaybeUnionType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeUnionType</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/UnionType.html" title="class in com.google.javascript.rhino.jstype">UnionType</a>&nbsp;toMaybeUnionType()</pre>
<div class="block">Downcasts this to a UnionType, or returns null if this is not a UnionType.

 Named in honor of Haskell's Maybe type constructor.</div>
</li>
</ul>
<a name="isGlobalThisType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isGlobalThisType</h4>
<pre>public final&nbsp;boolean&nbsp;isGlobalThisType()</pre>
<div class="block">Returns true if this is a global this type.</div>
</li>
</ul>
<a name="isFunctionType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isFunctionType</h4>
<pre>public final&nbsp;boolean&nbsp;isFunctionType()</pre>
<div class="block">Returns true if toMaybeFunctionType returns a non-null FunctionType.</div>
</li>
</ul>
<a name="toMaybeFunctionType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeFunctionType</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype">FunctionType</a>&nbsp;toMaybeFunctionType()</pre>
<div class="block">Downcasts this to a FunctionType, or returns null if this is not
 a function.

 For the purposes of this function, we define a MaybeFunctionType as any
 type in the sub-lattice
 { x | LEAST_FUNCTION_TYPE <= x <= GREATEST_FUNCTION_TYPE }
 This definition excludes bottom types like NoType and NoObjectType.

 This definition is somewhat arbitrary and axiomatic, but this is the
 definition that makes the most sense for the most callers.</div>
</li>
</ul>
<a name="toMaybeFunctionType-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeFunctionType</h4>
<pre>public static&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype">FunctionType</a>&nbsp;toMaybeFunctionType(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;type)</pre>
<div class="block">Null-safe version of toMaybeFunctionType().</div>
</li>
</ul>
<a name="isEnumElementType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEnumElementType</h4>
<pre>public final&nbsp;boolean&nbsp;isEnumElementType()</pre>
</li>
</ul>
<a name="toMaybeEnumElementType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeEnumElementType</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/EnumElementType.html" title="class in com.google.javascript.rhino.jstype">EnumElementType</a>&nbsp;toMaybeEnumElementType()</pre>
<div class="block">Downcasts this to an EnumElementType, or returns null if this is not an EnumElementType.</div>
</li>
</ul>
<a name="isEnumType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEnumType</h4>
<pre>public&nbsp;boolean&nbsp;isEnumType()</pre>
</li>
</ul>
<a name="toMaybeEnumType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeEnumType</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/EnumType.html" title="class in com.google.javascript.rhino.jstype">EnumType</a>&nbsp;toMaybeEnumType()</pre>
<div class="block">Downcasts this to an EnumType, or returns null if this is not an EnumType.</div>
</li>
</ul>
<a name="isRecordType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRecordType</h4>
<pre>public&nbsp;boolean&nbsp;isRecordType()</pre>
</li>
</ul>
<a name="isTemplatizedType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTemplatizedType</h4>
<pre>public final&nbsp;boolean&nbsp;isTemplatizedType()</pre>
</li>
</ul>
<a name="toMaybeTemplatizedType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeTemplatizedType</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/TemplatizedType.html" title="class in com.google.javascript.rhino.jstype">TemplatizedType</a>&nbsp;toMaybeTemplatizedType()</pre>
<div class="block">Downcasts this to a TemplatizedType, or returns null if this is not
 a function.</div>
</li>
</ul>
<a name="toMaybeTemplatizedType-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeTemplatizedType</h4>
<pre>public static&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/TemplatizedType.html" title="class in com.google.javascript.rhino.jstype">TemplatizedType</a>&nbsp;toMaybeTemplatizedType(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;type)</pre>
<div class="block">Null-safe version of toMaybeTemplatizedType().</div>
</li>
</ul>
<a name="isTemplateType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTemplateType</h4>
<pre>public final&nbsp;boolean&nbsp;isTemplateType()</pre>
</li>
</ul>
<a name="toMaybeTemplateType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeTemplateType</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/TemplateType.html" title="class in com.google.javascript.rhino.jstype">TemplateType</a>&nbsp;toMaybeTemplateType()</pre>
<div class="block">Downcasts this to a TemplateType, or returns null if this is not
 a function.</div>
</li>
</ul>
<a name="toMaybeTemplateType-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMaybeTemplateType</h4>
<pre>public static&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/TemplateType.html" title="class in com.google.javascript.rhino.jstype">TemplateType</a>&nbsp;toMaybeTemplateType(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;type)</pre>
<div class="block">Null-safe version of toMaybeTemplateType().</div>
</li>
</ul>
<a name="hasAnyTemplateTypes--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasAnyTemplateTypes</h4>
<pre>public&nbsp;boolean&nbsp;hasAnyTemplateTypes()</pre>
</li>
</ul>
<a name="getTemplateTypeMap--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTemplateTypeMap</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/TemplateTypeMap.html" title="class in com.google.javascript.rhino.jstype">TemplateTypeMap</a>&nbsp;getTemplateTypeMap()</pre>
<div class="block">Returns the template type map associated with this type.</div>
</li>
</ul>
<a name="isObject--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isObject</h4>
<pre>public&nbsp;boolean&nbsp;isObject()</pre>
<div class="block">Tests whether this type is an <code>Object</code>, or any subtype thereof.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this &amp;lt;: Object</code></dd>
</dl>
</li>
</ul>
<a name="isConstructor--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isConstructor</h4>
<pre>public&nbsp;boolean&nbsp;isConstructor()</pre>
<div class="block">Whether this type is a <a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype"><code>FunctionType</code></a> that is a constructor or a
 named type that points to such a type.</div>
</li>
</ul>
<a name="isNominalType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNominalType</h4>
<pre>public&nbsp;boolean&nbsp;isNominalType()</pre>
<div class="block">Whether this type is a nominal type (a named instance object or
 a named enum).</div>
</li>
</ul>
<a name="isNominalConstructor--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNominalConstructor</h4>
<pre>public final&nbsp;boolean&nbsp;isNominalConstructor()</pre>
<div class="block">Whether this type is the original constructor of a nominal type.
 Does not include structural constructors.</div>
</li>
</ul>
<a name="isInstanceType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInstanceType</h4>
<pre>public&nbsp;boolean&nbsp;isInstanceType()</pre>
<div class="block">Whether this type is an Instance object of some constructor.
 Does not necessarily mean this is an <code>InstanceObjectType</code>.</div>
</li>
</ul>
<a name="isInterface--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInterface</h4>
<pre>public&nbsp;boolean&nbsp;isInterface()</pre>
<div class="block">Whether this type is a <a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype"><code>FunctionType</code></a> that is an interface or a named
 type that points to such a type.</div>
</li>
</ul>
<a name="isOrdinaryFunction--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOrdinaryFunction</h4>
<pre>public&nbsp;boolean&nbsp;isOrdinaryFunction()</pre>
<div class="block">Whether this type is a <a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype"><code>FunctionType</code></a> that is an ordinary function or
 a named type that points to such a type.</div>
</li>
</ul>
<a name="isEquivalentTo-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEquivalentTo</h4>
<pre>public final&nbsp;boolean&nbsp;isEquivalentTo(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Checks if two types are equivalent.</div>
</li>
</ul>
<a name="isInvariant-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInvariant</h4>
<pre>public final&nbsp;boolean&nbsp;isInvariant(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Checks if two types are invariant.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>EquivalenceMethod</code></dd>
</dl>
</li>
</ul>
<a name="differsFrom-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>differsFrom</h4>
<pre>public final&nbsp;boolean&nbsp;differsFrom(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Whether this type is meaningfully different from <code>that</code> type for
 the purposes of data flow analysis.

 This is a trickier check than pure equality, because it has to properly
 handle unknown types. See <code>EquivalenceMethod</code> for more info.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://www.youtube.com/watch?v=_RpSv3HjpEw">Unknown unknowns</a></dd>
</dl>
</li>
</ul>
<a name="isEquivalent-com.google.javascript.rhino.jstype.JSType-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEquivalent</h4>
<pre>public static&nbsp;boolean&nbsp;isEquivalent(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;typeA,
                                   <a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;typeB)</pre>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;jsType)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="matchesInt32Context--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchesInt32Context</h4>
<pre>public final&nbsp;boolean&nbsp;matchesInt32Context()</pre>
<div class="block">This predicate is used to test whether a given type can appear in a
 'Int32' context.  This context includes, for example, the operands of a
 bitwise or operator.  Since we do not currently support integer types,
 this is a synonym for <code>Number</code>.</div>
</li>
</ul>
<a name="matchesUint32Context--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchesUint32Context</h4>
<pre>public final&nbsp;boolean&nbsp;matchesUint32Context()</pre>
<div class="block">This predicate is used to test whether a given type can appear in a
 'Uint32' context.  This context includes the right-hand operand of a shift
 operator.</div>
</li>
</ul>
<a name="matchesNumberContext--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchesNumberContext</h4>
<pre>public&nbsp;boolean&nbsp;matchesNumberContext()</pre>
<div class="block">This predicate is used to test whether a given type can appear in a
 numeric context, such as an operand of a multiply operator.</div>
</li>
</ul>
<a name="matchesStringContext--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchesStringContext</h4>
<pre>public&nbsp;boolean&nbsp;matchesStringContext()</pre>
<div class="block">This predicate is used to test whether a given type can appear in a
 <code>String</code> context, such as an operand of a string concat (+) operator.

 All types have at least the potential for converting to <code>String</code>.
 When we add externally defined types, such as a browser OM, we may choose
 to add types that do not automatically convert to <code>String</code>.</div>
</li>
</ul>
<a name="matchesObjectContext--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchesObjectContext</h4>
<pre>public&nbsp;boolean&nbsp;matchesObjectContext()</pre>
<div class="block">This predicate is used to test whether a given type can appear in an
 <code>Object</code> context, such as the expression in a with statement.

 Most types we will encounter, except notably <code>null</code>, have at least
 the potential for converting to <code>Object</code>.  Host defined objects can
 get peculiar.</div>
</li>
</ul>
<a name="findPropertyType-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findPropertyType</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;findPropertyType(java.lang.String&nbsp;propertyName)</pre>
<div class="block">Coerces this type to an Object type, then gets the type of the property
 whose name is given.

 Unlike <a href="../../../../../com/google/javascript/rhino/jstype/ObjectType.html#getPropertyType-java.lang.String-"><code>ObjectType.getPropertyType(java.lang.String)</code></a>, returns null if the property
 is not found.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The property's type. <code>null</code> if the current type cannot
     have properties, or if the type is not found.</dd>
</dl>
</li>
</ul>
<a name="canBeCalled--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>canBeCalled</h4>
<pre>public&nbsp;boolean&nbsp;canBeCalled()</pre>
<div class="block">This predicate is used to test whether a given type can be used as the
 'function' in a function call.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if this type might be callable.</dd>
</dl>
</li>
</ul>
<a name="canCastTo-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>canCastTo</h4>
<pre>public&nbsp;boolean&nbsp;canCastTo(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Tests whether values of <code>this</code> type can be safely assigned
 to values of <code>that</code> type.<p>

 The default implementation verifies that <code>this</code> is a subtype
 of <code>that</code>.<p></div>
</li>
</ul>
<a name="autoboxesTo--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>autoboxesTo</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;autoboxesTo()</pre>
<div class="block">Turn a scalar type to the corresponding object type.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the auto-boxed type or <code>null</code> if this type is not a scalar.</dd>
</dl>
</li>
</ul>
<a name="unboxesTo--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unboxesTo</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;unboxesTo()</pre>
<div class="block">Turn an object type to its corresponding scalar type.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the unboxed type or <code>null</code> if this type does not unbox.</dd>
</dl>
</li>
</ul>
<a name="toObjectType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toObjectType</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/ObjectType.html" title="class in com.google.javascript.rhino.jstype">ObjectType</a>&nbsp;toObjectType()</pre>
<div class="block">Casts this to an ObjectType, or returns null if this is not an ObjectType.
 If this is a scalar type, it will *not* be converted to an object type.
 If you want to simulate JS autoboxing or dereferencing, you should use
 autoboxesTo() or dereference().</div>
</li>
</ul>
<a name="autobox--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>autobox</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;autobox()</pre>
<div class="block">Dereference a type for property access.

 Filters null/undefined and autoboxes the resulting type.
 Never returns null.</div>
</li>
</ul>
<a name="dereference--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dereference</h4>
<pre>public final&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/ObjectType.html" title="class in com.google.javascript.rhino.jstype">ObjectType</a>&nbsp;dereference()</pre>
<div class="block">Dereference a type for property access.

 Filters null/undefined, autoboxes the resulting type, and returns it
 iff it's an object.</div>
</li>
</ul>
<a name="canTestForEqualityWith-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>canTestForEqualityWith</h4>
<pre>public final&nbsp;boolean&nbsp;canTestForEqualityWith(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Tests whether <code>this</code> and <code>that</code> are meaningfully
 comparable. By meaningfully, we mean compatible types that do not lead
 to step 22 of the definition of the Abstract Equality Comparison
 Algorithm (11.9.3, page 55&ndash;56) of the ECMA-262 specification.<p></div>
</li>
</ul>
<a name="testForEquality-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>testForEquality</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/TernaryValue.html" title="enum in com.google.javascript.rhino.jstype">TernaryValue</a>&nbsp;testForEquality(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Compares <code>this</code> and <code>that</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><ul>
 <li><a href="../../../../../com/google/javascript/rhino/jstype/TernaryValue.html#TRUE"><code>TernaryValue.TRUE</code></a> if the comparison of values of
   <code>this</code> type and <code>that</code> always succeed (such as
   <code>undefined</code> compared to <code>null</code>)</li>
 <li><a href="../../../../../com/google/javascript/rhino/jstype/TernaryValue.html#FALSE"><code>TernaryValue.FALSE</code></a> if the comparison of values of
   <code>this</code> type and <code>that</code> always fails (such as
   <code>undefined</code> compared to <code>number</code>)</li>
 <li><a href="../../../../../com/google/javascript/rhino/jstype/TernaryValue.html#UNKNOWN"><code>TernaryValue.UNKNOWN</code></a> if the comparison can succeed or
   fail depending on the concrete values</li>
 </ul></dd>
</dl>
</li>
</ul>
<a name="canTestForShallowEqualityWith-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>canTestForShallowEqualityWith</h4>
<pre>public final&nbsp;boolean&nbsp;canTestForShallowEqualityWith(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Tests whether <code>this</code> and <code>that</code> are meaningfully
 comparable using shallow comparison. By meaningfully, we mean compatible
 types that are not rejected by step 1 of the definition of the Strict
 Equality Comparison Algorithm (11.9.6, page 56&ndash;57) of the
 ECMA-262 specification.<p></div>
</li>
</ul>
<a name="isNullable--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNullable</h4>
<pre>public&nbsp;boolean&nbsp;isNullable()</pre>
<div class="block">Tests whether this type is nullable.</div>
</li>
</ul>
<a name="collapseUnion--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>collapseUnion</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;collapseUnion()</pre>
<div class="block">Gets the least supertype of this that's not a union.</div>
</li>
</ul>
<a name="getLeastSupertype-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLeastSupertype</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;getLeastSupertype(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Gets the least supertype of <code>this</code> and <code>that</code>.
 The least supertype is the join (&#8744;) or supremum of both types in the
 type lattice.<p>
 Examples:
 <ul>
 <li><code>number &amp;#8744; *</code> = <code>*</code></li>
 <li><code>number &amp;#8744; Object</code> = <code>(number, Object)</code></li>
 <li><code>Number &amp;#8744; Object</code> = <code>Object</code></li>
 </ul></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this &amp;#8744; that</code></dd>
</dl>
</li>
</ul>
<a name="getGreatestSubtype-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGreatestSubtype</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;getGreatestSubtype(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Gets the greatest subtype of <code>this</code> and <code>that</code>.
 The greatest subtype is the meet (&#8743;) or infimum of both types in the
 type lattice.<p>
 Examples
 <ul>
 <li><code>Number &amp;#8743; Any</code> = <code>Any</code></li>
 <li><code>number &amp;#8743; Object</code> = <code>Any</code></li>
 <li><code>Number &amp;#8743; Object</code> = <code>Number</code></li>
 </ul></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this &amp;#8744; that</code></dd>
</dl>
</li>
</ul>
<a name="getRestrictedTypeGivenToBooleanOutcome-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRestrictedTypeGivenToBooleanOutcome</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;getRestrictedTypeGivenToBooleanOutcome(boolean&nbsp;outcome)</pre>
<div class="block">Computes the restricted type of this type knowing that the
 <code>ToBoolean</code> predicate has a specific value. For more information
 about the <code>ToBoolean</code> predicate, see
 <a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#getPossibleToBooleanOutcomes--"><code>getPossibleToBooleanOutcomes()</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>outcome</code> - the value of the <code>ToBoolean</code> predicate</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the restricted type, or the Any Type if the underlying type could
         not have yielded this ToBoolean value

 TODO(user): Move this method to the SemanticRAI and use the visit
 method of types to get the restricted type.</dd>
</dl>
</li>
</ul>
<a name="getPossibleToBooleanOutcomes--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPossibleToBooleanOutcomes</h4>
<pre>public abstract&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/BooleanLiteralSet.html" title="enum in com.google.javascript.rhino.jstype">BooleanLiteralSet</a>&nbsp;getPossibleToBooleanOutcomes()</pre>
<div class="block">Computes the set of possible outcomes of the <code>ToBoolean</code> predicate
 for this type. The <code>ToBoolean</code> predicate is defined by the ECMA-262
 standard, 3<sup>rd</sup> edition. Its behavior for simple types can be
 summarized by the following table:
 <table>
 <tr><th>type</th><th>result</th></tr>
 <tr><td><code>undefined</code></td><td>{false}</td></tr>
 <tr><td><code>null</code></td><td>{false}</td></tr>
 <tr><td><code>boolean</code></td><td>{true, false}</td></tr>
 <tr><td><code>number</code></td><td>{true, false}</td></tr>
 <tr><td><code>string</code></td><td>{true, false}</td></tr>
 <tr><td><code>Object</code></td><td>{true}</td></tr>
 </table></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of boolean literals for this type</dd>
</dl>
</li>
</ul>
<a name="getTypesUnderEquality-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypesUnderEquality</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a>&nbsp;getTypesUnderEquality(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Computes the subset of <code>this</code> and <code>that</code> types if equality
 is observed. If a value <code>v1</code> of type <code>null</code> is equal to a value
 <code>v2</code> of type <code>(undefined,number)</code>, we can infer that the
 type of <code>v1</code> is <code>null</code> and the type of <code>v2</code> is
 <code>undefined</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a pair containing the restricted type of <code>this</code> as the first
         component and the restricted type of <code>that</code> as the second
         element. The returned pair is never <code>null</code> even though its
         components may be <code>null</code></dd>
</dl>
</li>
</ul>
<a name="getTypesUnderInequality-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypesUnderInequality</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a>&nbsp;getTypesUnderInequality(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Computes the subset of <code>this</code> and <code>that</code> types if inequality
 is observed. If a value <code>v1</code> of type <code>number</code> is not equal to a
 value <code>v2</code> of type <code>(undefined,number)</code>, we can infer that the
 type of <code>v1</code> is <code>number</code> and the type of <code>v2</code> is
 <code>number</code> as well.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a pair containing the restricted type of <code>this</code> as the first
         component and the restricted type of <code>that</code> as the second
         element. The returned pair is never <code>null</code> even though its
         components may be <code>null</code></dd>
</dl>
</li>
</ul>
<a name="getTypesUnderShallowEquality-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypesUnderShallowEquality</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a>&nbsp;getTypesUnderShallowEquality(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Computes the subset of <code>this</code> and <code>that</code> types under shallow
 equality.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a pair containing the restricted type of <code>this</code> as the first
         component and the restricted type of <code>that</code> as the second
         element. The returned pair is never <code>null</code> even though its
         components may be <code>null</code>.</dd>
</dl>
</li>
</ul>
<a name="getTypesUnderShallowInequality-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypesUnderShallowInequality</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype">JSType.TypePair</a>&nbsp;getTypesUnderShallowInequality(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Computes the subset of <code>this</code> and <code>that</code> types under
 shallow inequality.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A pair containing the restricted type of <code>this</code> as the first
         component and the restricted type of <code>that</code> as the second
         element. The returned pair is never <code>null</code> even though its
         components may be <code>null</code></dd>
</dl>
</li>
</ul>
<a name="restrictByNotNullOrUndefined--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restrictByNotNullOrUndefined</h4>
<pre>public&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;restrictByNotNullOrUndefined()</pre>
<div class="block">If this is a union type, returns a union type that does not include
 the null or undefined type.</div>
</li>
</ul>
<a name="isSubtype-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSubtype</h4>
<pre>public&nbsp;boolean&nbsp;isSubtype(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;that)</pre>
<div class="block">Checks whether <code>this</code> is a subtype of <code>that</code>.<p>

 Subtyping rules:
 <ul>
 <li>(unknown) &mdash; every type is a subtype of the Unknown type.</li>
 <li>(no) &mdash; the No type is a subtype of every type.</li>
 <li>(no-object) &mdash; the NoObject type is a subtype of every object
 type (i.e. subtypes of the Object type).</li>
 <li>(ref) &mdash; a type is a subtype of itself.</li>
 <li>(union-l) &mdash; A union type is a subtype of a type U if all the
 union type's constituents are a subtype of U. Formally<br>
 <code>(T&lt;sub&gt;1&lt;/sub&gt;, &amp;hellip;, T&lt;sub&gt;n&lt;/sub&gt;) &amp;lt;: U</code> if and only
 <code>T&lt;sub&gt;k&lt;/sub&gt; &amp;lt;: U</code> for all <code>k &amp;isin; 1..n</code>.</li>
 <li>(union-r) &mdash; A type U is a subtype of a union type if it is a
 subtype of one of the union type's constituents. Formally<br>
 <code>U &amp;lt;: (T&lt;sub&gt;1&lt;/sub&gt;, &amp;hellip;, T&lt;sub&gt;n&lt;/sub&gt;)</code> if and only
 if <code>U &amp;lt;: T&lt;sub&gt;k&lt;/sub&gt;</code> for some index <code>k</code>.</li>
 <li>(objects) &mdash; an Object <code>O&lt;sub&gt;1&lt;/sub&gt;</code> is a subtype
 of an object <code>O&lt;sub&gt;2&lt;/sub&gt;</code> if it has more properties
 than <code>O&lt;sub&gt;2&lt;/sub&gt;</code> and all common properties are
 pairwise subtypes.</li>
 </ul></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this &amp;lt;: that</code></dd>
</dl>
</li>
</ul>
<a name="visit-com.google.javascript.rhino.jstype.Visitor-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>visit</h4>
<pre>public abstract&nbsp;&lt;T&gt;&nbsp;T&nbsp;visit(<a href="../../../../../com/google/javascript/rhino/jstype/Visitor.html" title="interface in com.google.javascript.rhino.jstype">Visitor</a>&lt;T&gt;&nbsp;visitor)</pre>
<div class="block">Visit this type with the given visitor.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value returned by the visitor</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/google/javascript/rhino/jstype/Visitor.html" title="interface in com.google.javascript.rhino.jstype"><code>Visitor</code></a></dd>
</dl>
</li>
</ul>
<a name="forceResolve-com.google.javascript.rhino.ErrorReporter-com.google.javascript.rhino.jstype.StaticScope-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>forceResolve</h4>
<pre>public final&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;forceResolve(<a href="../../../../../com/google/javascript/rhino/ErrorReporter.html" title="interface in com.google.javascript.rhino">ErrorReporter</a>&nbsp;t,
                                 <a href="../../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;&nbsp;scope)</pre>
<div class="block">Force this type to resolve, even if the registry is in a lazy
 resolving mode.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#resolve-com.google.javascript.rhino.ErrorReporter-com.google.javascript.rhino.jstype.StaticScope-"><code>resolve(com.google.javascript.rhino.ErrorReporter, com.google.javascript.rhino.jstype.StaticScope&lt;com.google.javascript.rhino.jstype.JSType&gt;)</code></a></dd>
</dl>
</li>
</ul>
<a name="resolve-com.google.javascript.rhino.ErrorReporter-com.google.javascript.rhino.jstype.StaticScope-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resolve</h4>
<pre>public final&nbsp;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;resolve(<a href="../../../../../com/google/javascript/rhino/ErrorReporter.html" title="interface in com.google.javascript.rhino">ErrorReporter</a>&nbsp;t,
                            <a href="../../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;&nbsp;scope)</pre>
<div class="block">Resolve this type in the given scope.

 The returned value must be equal to <code>this</code>, as defined by
 <a href="../../../../../com/google/javascript/rhino/jstype/JSType.html#isEquivalentTo-com.google.javascript.rhino.jstype.JSType-"><code>isEquivalentTo(com.google.javascript.rhino.jstype.JSType)</code></a>. It may or may not be the same object. This method
 may modify the internal state of <code>this</code>, as long as it does
 so in a way that preserves Object equality.

 For efficiency, we should only resolve a type once per compilation job.
 For incremental compilations, one compilation job may need the
 artifacts from a previous generation, so we will eventually need
 a generational flag instead of a boolean one.</div>
</li>
</ul>
<a name="isResolved--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isResolved</h4>
<pre>public final&nbsp;boolean&nbsp;isResolved()</pre>
<div class="block">Whether the type has been resolved.</div>
</li>
</ul>
<a name="clearResolved--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearResolved</h4>
<pre>public final&nbsp;void&nbsp;clearResolved()</pre>
<div class="block">Clears the resolved field.</div>
</li>
</ul>
<a name="setValidator-com.google.common.base.Predicate-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValidator</h4>
<pre>public&nbsp;boolean&nbsp;setValidator(com.google.common.base.Predicate&lt;<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;&nbsp;validator)</pre>
<div class="block">Certain types have constraints on them at resolution-time.
 For example, a type in an <code>@extends</code> annotation must be an
 object. Clients should inject a validator that emits a warning
 if the type does not validate, and return false.</div>
</li>
</ul>
<a name="toString--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<div class="block">A string representation of this type, suitable for printing
 in warnings.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="toDebugHashCodeString--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toDebugHashCodeString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toDebugHashCodeString()</pre>
<div class="block">A hash code function for diagnosing complicated issues
 around type-identity.</div>
</li>
</ul>
<a name="toAnnotationString--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toAnnotationString</h4>
<pre>public final&nbsp;java.lang.String&nbsp;toAnnotationString()</pre>
<div class="block">A string representation of this type, suitable for printing
 in type annotations at code generation time.</div>
</li>
</ul>
<a name="matchConstraint-com.google.javascript.rhino.jstype.JSType-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>matchConstraint</h4>
<pre>public&nbsp;void&nbsp;matchConstraint(<a href="../../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;constraint)</pre>
<div class="block">Modify this type so that it matches the specified type.

 This is useful for reverse type-inference, where we want to
 infer that an object literal matches its constraint (much like
 how the java compiler does reverse-inference to figure out generics).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>constraint</code> - </dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/javascript/rhino/jstype/JSType.TypePair.html" title="class in com.google.javascript.rhino.jstype"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/javascript/rhino/jstype/JSType.html" target="_top">Frames</a></li>
<li><a href="JSType.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>