Common part of postamble, shared by both servlets and tag files.
()
| 3288 | * Common part of postamble, shared by both servlets and tag files. |
| 3289 | */ |
| 3290 | private void genCommonPostamble() { |
| 3291 | // Append any methods that were generated in the buffer. |
| 3292 | for (GenBuffer methodBuffer : methodsBuffered) { |
| 3293 | methodBuffer.adjustJavaLines(out.getJavaLine() - 1); |
| 3294 | out.printMultiLn(methodBuffer.toString()); |
| 3295 | } |
| 3296 | |
| 3297 | // Append the helper class |
| 3298 | if (fragmentHelperClass.isUsed()) { |
| 3299 | fragmentHelperClass.generatePostamble(); |
| 3300 | fragmentHelperClass.adjustJavaLines(out.getJavaLine() - 1); |
| 3301 | out.printMultiLn(fragmentHelperClass.toString()); |
| 3302 | } |
| 3303 | |
| 3304 | // Append char array declarations |
| 3305 | if (charArrayBuffer != null) { |
| 3306 | out.printMultiLn(charArrayBuffer.toString()); |
| 3307 | } |
| 3308 | |
| 3309 | // Close the class definition |
| 3310 | out.popIndent(); |
| 3311 | out.printil("}"); |
| 3312 | } |
| 3313 | |
| 3314 | /** |
| 3315 | * Generates the ending part of the static portion of the servlet. |
no test coverage detected