Returns the size of the bytecode of this method. @return the size of the bytecode of this method.
()
| 1154 | */ |
| 1155 | |
| 1156 | final int getSize () { |
| 1157 | if (resize) { |
| 1158 | // replaces the temporary jump opcodes introduced by Label.resolve. |
| 1159 | resizeInstructions(new int[0], new int[0], 0); |
| 1160 | } |
| 1161 | int size = 8; |
| 1162 | if (code.length > 0) { |
| 1163 | cw.newUTF8("Code"); |
| 1164 | size += 18 + code.length + 8 * catchCount; |
| 1165 | if (localVar != null) { |
| 1166 | size += 8 + localVar.length; |
| 1167 | } |
| 1168 | if (lineNumber != null) { |
| 1169 | size += 8 + lineNumber.length; |
| 1170 | } |
| 1171 | } |
| 1172 | if (exceptionCount > 0) { |
| 1173 | cw.newUTF8("Exceptions"); |
| 1174 | size += 8 + 2 * exceptionCount; |
| 1175 | } |
| 1176 | if ((access & Constants.ACC_SYNTHETIC) != 0) { |
| 1177 | cw.newUTF8("Synthetic"); |
| 1178 | size += 6; |
| 1179 | } |
| 1180 | if ((access & Constants.ACC_DEPRECATED) != 0) { |
| 1181 | cw.newUTF8("Deprecated"); |
| 1182 | size += 6; |
| 1183 | } |
| 1184 | return size; |
| 1185 | } |
| 1186 | |
| 1187 | /** |
| 1188 | * Puts the bytecode of this method in the given byte vector. |
no test coverage detected