Lines 664-670
Link Here
|
664 |
/** |
664 |
/** |
665 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
665 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
666 |
* |
666 |
* |
667 |
* @param char[] stringName |
667 |
* @param utf8Constant char[] |
668 |
* @return <CODE>int</CODE> |
668 |
* @return <CODE>int</CODE> |
669 |
*/ |
669 |
*/ |
670 |
public int literalIndex(char[] utf8Constant) { |
670 |
public int literalIndex(char[] utf8Constant) { |
Lines 742-748
Link Here
|
742 |
* value. If the double is not already present into the pool, it is added. The |
742 |
* value. If the double is not already present into the pool, it is added. The |
743 |
* double cache is updated and it returns the right index. |
743 |
* double cache is updated and it returns the right index. |
744 |
* |
744 |
* |
745 |
* @param <CODE>double</CODE> key |
745 |
* @param key <CODE>double</CODE> |
746 |
* @return <CODE>int</CODE> |
746 |
* @return <CODE>int</CODE> |
747 |
*/ |
747 |
*/ |
748 |
public int literalIndex(double key) { |
748 |
public int literalIndex(double key) { |
Lines 783-789
Link Here
|
783 |
* value. If the float is not already present into the pool, it is added. The |
783 |
* value. If the float is not already present into the pool, it is added. The |
784 |
* int cache is updated and it returns the right index. |
784 |
* int cache is updated and it returns the right index. |
785 |
* |
785 |
* |
786 |
* @param <CODE>float</CODE> key |
786 |
* @param key <CODE>float</CODE> |
787 |
* @return <CODE>int</CODE> |
787 |
* @return <CODE>int</CODE> |
788 |
*/ |
788 |
*/ |
789 |
public int literalIndex(float key) { |
789 |
public int literalIndex(float key) { |
Lines 821-827
Link Here
|
821 |
* value. If the int is not already present into the pool, it is added. The |
821 |
* value. If the int is not already present into the pool, it is added. The |
822 |
* int cache is updated and it returns the right index. |
822 |
* int cache is updated and it returns the right index. |
823 |
* |
823 |
* |
824 |
* @param <CODE>int</CODE> key |
824 |
* @param key <CODE>int</CODE> |
825 |
* @return <CODE>int</CODE> |
825 |
* @return <CODE>int</CODE> |
826 |
*/ |
826 |
*/ |
827 |
public int literalIndex(int key) { |
827 |
public int literalIndex(int key) { |
Lines 858-864
Link Here
|
858 |
* value. If the long is not already present into the pool, it is added. The |
858 |
* value. If the long is not already present into the pool, it is added. The |
859 |
* long cache is updated and it returns the right index. |
859 |
* long cache is updated and it returns the right index. |
860 |
* |
860 |
* |
861 |
* @param <CODE>long</CODE> key |
861 |
* @param key <CODE>long</CODE> |
862 |
* @return <CODE>int</CODE> |
862 |
* @return <CODE>int</CODE> |
863 |
*/ |
863 |
*/ |
864 |
public int literalIndex(long key) { |
864 |
public int literalIndex(long key) { |
Lines 920-926
Link Here
|
920 |
* This method returns the index into the constantPool |
920 |
* This method returns the index into the constantPool |
921 |
* corresponding to the field binding aFieldBinding. |
921 |
* corresponding to the field binding aFieldBinding. |
922 |
* |
922 |
* |
923 |
* @param FieldBinding aFieldBinding |
923 |
* @param aFieldBinding FieldBinding |
924 |
* @return <CODE>int</CODE> |
924 |
* @return <CODE>int</CODE> |
925 |
*/ |
925 |
*/ |
926 |
public int literalIndex(FieldBinding aFieldBinding) { |
926 |
public int literalIndex(FieldBinding aFieldBinding) { |
Lines 963-969
Link Here
|
963 |
* or a method reference constant. |
963 |
* or a method reference constant. |
964 |
* Note: uses the method binding #constantPoolDeclaringClass which could be an array type |
964 |
* Note: uses the method binding #constantPoolDeclaringClass which could be an array type |
965 |
* for the array clone method (see UpdatedMethodDeclaration). |
965 |
* for the array clone method (see UpdatedMethodDeclaration). |
966 |
* @param MethodBinding aMethodBinding |
966 |
* @param aMethodBinding MethodBinding |
967 |
* @return <CODE>int</CODE> |
967 |
* @return <CODE>int</CODE> |
968 |
*/ |
968 |
*/ |
969 |
public int literalIndex(MethodBinding aMethodBinding) { |
969 |
public int literalIndex(MethodBinding aMethodBinding) { |
Lines 1049-1055
Link Here
|
1049 |
/** |
1049 |
/** |
1050 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1050 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1051 |
* |
1051 |
* |
1052 |
* @param TypeBinding aTypeBinding |
1052 |
* @param aTypeBinding TypeBinding |
1053 |
* @return <CODE>int</CODE> |
1053 |
* @return <CODE>int</CODE> |
1054 |
*/ |
1054 |
*/ |
1055 |
public int literalIndex(TypeBinding aTypeBinding) { |
1055 |
public int literalIndex(TypeBinding aTypeBinding) { |
Lines 1087-1095
Link Here
|
1087 |
* This method returns the index into the constantPool corresponding |
1087 |
* This method returns the index into the constantPool corresponding |
1088 |
* nameAndType constant with nameIndex, typeIndex. |
1088 |
* nameAndType constant with nameIndex, typeIndex. |
1089 |
* |
1089 |
* |
1090 |
* @param int nameIndex |
1090 |
* @param nameIndex int |
1091 |
* @param int nameIndex |
1091 |
* @param typeIndex int |
1092 |
* @param org.eclipse.jdt.internal.compiler.lookup.FieldBinding a FieldBinding |
1092 |
* @param key org.eclipse.jdt.internal.compiler.lookup.FieldBinding |
1093 |
* @return <CODE>int</CODE> |
1093 |
* @return <CODE>int</CODE> |
1094 |
*/ |
1094 |
*/ |
1095 |
public int literalIndexForFields(int nameIndex, int typeIndex, FieldBinding key) { |
1095 |
public int literalIndexForFields(int nameIndex, int typeIndex, FieldBinding key) { |
Lines 1123-1129
Link Here
|
1123 |
/** |
1123 |
/** |
1124 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1124 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1125 |
* |
1125 |
* |
1126 |
* @param TypeBinding aTypeBinding |
|
|
1127 |
* @return <CODE>int</CODE> |
1126 |
* @return <CODE>int</CODE> |
1128 |
*/ |
1127 |
*/ |
1129 |
public int literalIndexForJavaLangBoolean() { |
1128 |
public int literalIndexForJavaLangBoolean() { |
Lines 1176-1182
Link Here
|
1176 |
/** |
1175 |
/** |
1177 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1176 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1178 |
* |
1177 |
* |
1179 |
* @param TypeBinding aTypeBinding |
|
|
1180 |
* @return <CODE>int</CODE> |
1178 |
* @return <CODE>int</CODE> |
1181 |
*/ |
1179 |
*/ |
1182 |
public int literalIndexForJavaLangByte() { |
1180 |
public int literalIndexForJavaLangByte() { |
Lines 1229-1235
Link Here
|
1229 |
/** |
1227 |
/** |
1230 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1228 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1231 |
* |
1229 |
* |
1232 |
* @param TypeBinding aTypeBinding |
|
|
1233 |
* @return <CODE>int</CODE> |
1230 |
* @return <CODE>int</CODE> |
1234 |
*/ |
1231 |
*/ |
1235 |
public int literalIndexForJavaLangCharacter() { |
1232 |
public int literalIndexForJavaLangCharacter() { |
Lines 1282-1288
Link Here
|
1282 |
/** |
1279 |
/** |
1283 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1280 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1284 |
* |
1281 |
* |
1285 |
* @param TypeBinding aTypeBinding |
|
|
1286 |
* @return <CODE>int</CODE> |
1282 |
* @return <CODE>int</CODE> |
1287 |
*/ |
1283 |
*/ |
1288 |
public int literalIndexForJavaLangClass() { |
1284 |
public int literalIndexForJavaLangClass() { |
Lines 1412-1418
Link Here
|
1412 |
/** |
1408 |
/** |
1413 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1409 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1414 |
* |
1410 |
* |
1415 |
* @param TypeBinding aTypeBinding |
|
|
1416 |
* @return <CODE>int</CODE> |
1411 |
* @return <CODE>int</CODE> |
1417 |
*/ |
1412 |
*/ |
1418 |
public int literalIndexForJavaLangClassNotFoundException() { |
1413 |
public int literalIndexForJavaLangClassNotFoundException() { |
Lines 1434-1440
Link Here
|
1434 |
/** |
1429 |
/** |
1435 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1430 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1436 |
* |
1431 |
* |
1437 |
* @param TypeBinding aTypeBinding |
|
|
1438 |
* @return <CODE>int</CODE> |
1432 |
* @return <CODE>int</CODE> |
1439 |
*/ |
1433 |
*/ |
1440 |
public int literalIndexForJavaLangDouble() { |
1434 |
public int literalIndexForJavaLangDouble() { |
Lines 1487-1493
Link Here
|
1487 |
/** |
1481 |
/** |
1488 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1482 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1489 |
* |
1483 |
* |
1490 |
* @param TypeBinding aTypeBinding |
|
|
1491 |
* @return <CODE>int</CODE> |
1484 |
* @return <CODE>int</CODE> |
1492 |
*/ |
1485 |
*/ |
1493 |
public int literalIndexForJavaLangError() { |
1486 |
public int literalIndexForJavaLangError() { |
Lines 1560-1566
Link Here
|
1560 |
/** |
1553 |
/** |
1561 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1554 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1562 |
* |
1555 |
* |
1563 |
* @param TypeBinding aTypeBinding |
|
|
1564 |
* @return <CODE>int</CODE> |
1556 |
* @return <CODE>int</CODE> |
1565 |
*/ |
1557 |
*/ |
1566 |
public int literalIndexForJavaLangFloat() { |
1558 |
public int literalIndexForJavaLangFloat() { |
Lines 1613-1619
Link Here
|
1613 |
/** |
1605 |
/** |
1614 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1606 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1615 |
* |
1607 |
* |
1616 |
* @param TypeBinding aTypeBinding |
|
|
1617 |
* @return <CODE>int</CODE> |
1608 |
* @return <CODE>int</CODE> |
1618 |
*/ |
1609 |
*/ |
1619 |
public int literalIndexForJavaLangInteger() { |
1610 |
public int literalIndexForJavaLangInteger() { |
Lines 1666-1672
Link Here
|
1666 |
/** |
1657 |
/** |
1667 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1658 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1668 |
* |
1659 |
* |
1669 |
* @param TypeBinding aTypeBinding |
|
|
1670 |
* @return <CODE>int</CODE> |
1660 |
* @return <CODE>int</CODE> |
1671 |
*/ |
1661 |
*/ |
1672 |
public int literalIndexForJavaLangLong() { |
1662 |
public int literalIndexForJavaLangLong() { |
Lines 1719-1725
Link Here
|
1719 |
/** |
1709 |
/** |
1720 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1710 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1721 |
* |
1711 |
* |
1722 |
* @param TypeBinding aTypeBinding |
|
|
1723 |
* @return <CODE>int</CODE> |
1712 |
* @return <CODE>int</CODE> |
1724 |
*/ |
1713 |
*/ |
1725 |
public int literalIndexForJavaLangNoClassDefFoundError() { |
1714 |
public int literalIndexForJavaLangNoClassDefFoundError() { |
Lines 1742-1748
Link Here
|
1742 |
/** |
1731 |
/** |
1743 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1732 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1744 |
* |
1733 |
* |
1745 |
* @param TypeBinding aTypeBinding |
|
|
1746 |
* @return <CODE>int</CODE> |
1734 |
* @return <CODE>int</CODE> |
1747 |
*/ |
1735 |
*/ |
1748 |
public int literalIndexForJavaLangAssertionError() { |
1736 |
public int literalIndexForJavaLangAssertionError() { |
Lines 1765-1771
Link Here
|
1765 |
/** |
1753 |
/** |
1766 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1754 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
1767 |
* |
1755 |
* |
1768 |
* @param TypeBinding aTypeBinding |
1756 |
* @param typeBindingID int |
1769 |
* @return <CODE>int</CODE> |
1757 |
* @return <CODE>int</CODE> |
1770 |
*/ |
1758 |
*/ |
1771 |
public int literalIndexForJavaLangAssertionErrorConstructor(int typeBindingID) { |
1759 |
public int literalIndexForJavaLangAssertionErrorConstructor(int typeBindingID) { |
Lines 2026-2032
Link Here
|
2026 |
/** |
2014 |
/** |
2027 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2015 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2028 |
* |
2016 |
* |
2029 |
* @param TypeBinding aTypeBinding |
|
|
2030 |
* @return <CODE>int</CODE> |
2017 |
* @return <CODE>int</CODE> |
2031 |
*/ |
2018 |
*/ |
2032 |
public int literalIndexForJavaLangObject() { |
2019 |
public int literalIndexForJavaLangObject() { |
Lines 2048-2054
Link Here
|
2048 |
/** |
2035 |
/** |
2049 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2036 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2050 |
* |
2037 |
* |
2051 |
* @param TypeBinding aTypeBinding |
|
|
2052 |
* @return <CODE>int</CODE> |
2038 |
* @return <CODE>int</CODE> |
2053 |
*/ |
2039 |
*/ |
2054 |
public int literalIndexForJavaLangReflectConstructor() { |
2040 |
public int literalIndexForJavaLangReflectConstructor() { |
Lines 2099-2105
Link Here
|
2099 |
/** |
2085 |
/** |
2100 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2086 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2101 |
* |
2087 |
* |
2102 |
* @param TypeBinding aTypeBinding |
|
|
2103 |
* @return <CODE>int</CODE> |
2088 |
* @return <CODE>int</CODE> |
2104 |
*/ |
2089 |
*/ |
2105 |
public int literalIndexForJavaLangShort() { |
2090 |
public int literalIndexForJavaLangShort() { |
Lines 2152-2158
Link Here
|
2152 |
/** |
2137 |
/** |
2153 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2138 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2154 |
* |
2139 |
* |
2155 |
* @param TypeBinding aTypeBinding |
|
|
2156 |
* @return <CODE>int</CODE> |
2140 |
* @return <CODE>int</CODE> |
2157 |
*/ |
2141 |
*/ |
2158 |
public int literalIndexForJavaLangString() { |
2142 |
public int literalIndexForJavaLangString() { |
Lines 2174-2180
Link Here
|
2174 |
/** |
2158 |
/** |
2175 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2159 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2176 |
* |
2160 |
* |
2177 |
* @param TypeBinding aTypeBinding |
|
|
2178 |
* @return <CODE>int</CODE> |
2161 |
* @return <CODE>int</CODE> |
2179 |
*/ |
2162 |
*/ |
2180 |
public int literalIndexForJavaLangStringBuffer() { |
2163 |
public int literalIndexForJavaLangStringBuffer() { |
Lines 2728-2734
Link Here
|
2728 |
/** |
2711 |
/** |
2729 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2712 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2730 |
* |
2713 |
* |
2731 |
* @param TypeBinding aTypeBinding |
|
|
2732 |
* @return <CODE>int</CODE> |
2714 |
* @return <CODE>int</CODE> |
2733 |
*/ |
2715 |
*/ |
2734 |
public int literalIndexForJavaLangSystem() { |
2716 |
public int literalIndexForJavaLangSystem() { |
Lines 2817-2823
Link Here
|
2817 |
/** |
2799 |
/** |
2818 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2800 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2819 |
* |
2801 |
* |
2820 |
* @param TypeBinding aTypeBinding |
|
|
2821 |
* @return <CODE>int</CODE> |
2802 |
* @return <CODE>int</CODE> |
2822 |
*/ |
2803 |
*/ |
2823 |
public int literalIndexForJavaLangThrowable() { |
2804 |
public int literalIndexForJavaLangThrowable() { |
Lines 2875-2881
Link Here
|
2875 |
/** |
2856 |
/** |
2876 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2857 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2877 |
* |
2858 |
* |
2878 |
* @param TypeBinding aTypeBinding |
|
|
2879 |
* @return <CODE>int</CODE> |
2859 |
* @return <CODE>int</CODE> |
2880 |
*/ |
2860 |
*/ |
2881 |
public int literalIndexForJavaLangVoid() { |
2861 |
public int literalIndexForJavaLangVoid() { |
Lines 2928-2934
Link Here
|
2928 |
/** |
2908 |
/** |
2929 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2909 |
* This method returns the index into the constantPool corresponding to the type descriptor. |
2930 |
* |
2910 |
* |
2931 |
* @param char[] stringName |
2911 |
* @param stringCharArray char[] |
2932 |
* @return <CODE>int</CODE> |
2912 |
* @return <CODE>int</CODE> |
2933 |
*/ |
2913 |
*/ |
2934 |
public int literalIndexForLdc(char[] stringCharArray) { |
2914 |
public int literalIndexForLdc(char[] stringCharArray) { |
Lines 2999-3007
Link Here
|
2999 |
* This method returns the index into the constantPool corresponding |
2979 |
* This method returns the index into the constantPool corresponding |
3000 |
* nameAndType constant with nameIndex, typeIndex. |
2980 |
* nameAndType constant with nameIndex, typeIndex. |
3001 |
* |
2981 |
* |
3002 |
* @param int nameIndex |
2982 |
* @param nameIndex int |
3003 |
* @param int nameIndex |
2983 |
* @param typeIndex int |
3004 |
* @param org.eclipse.jdt.internal.compiler.lookup.MethodBinding a methodBinding |
2984 |
* @param key org.eclipse.jdt.internal.compiler.lookup.MethodBinding |
3005 |
* @return <CODE>int</CODE> |
2985 |
* @return <CODE>int</CODE> |
3006 |
*/ |
2986 |
*/ |
3007 |
public int literalIndexForMethods(int nameIndex, int typeIndex, MethodBinding key) { |
2987 |
public int literalIndexForMethods(int nameIndex, int typeIndex, MethodBinding key) { |
Lines 3087-3093
Link Here
|
3087 |
/** |
3067 |
/** |
3088 |
* Write a unsigned byte into the byte array |
3068 |
* Write a unsigned byte into the byte array |
3089 |
* |
3069 |
* |
3090 |
* @param <CODE>int</CODE> The value to write into the byte array |
3070 |
* @param value <CODE>int</CODE> The value to write into the byte array |
3091 |
*/ |
3071 |
*/ |
3092 |
protected final void writeU1(int value) { |
3072 |
protected final void writeU1(int value) { |
3093 |
try { |
3073 |
try { |
Lines 3102-3108
Link Here
|
3102 |
/** |
3082 |
/** |
3103 |
* Write a unsigned byte into the byte array |
3083 |
* Write a unsigned byte into the byte array |
3104 |
* |
3084 |
* |
3105 |
* @param <CODE>int</CODE> The value to write into the byte array |
3085 |
* @param value <CODE>int</CODE> The value to write into the byte array |
3106 |
*/ |
3086 |
*/ |
3107 |
protected final void writeU2(int value) { |
3087 |
protected final void writeU2(int value) { |
3108 |
//first byte |
3088 |
//first byte |