MCPcopy Index your code
hub / github.com/apache/tomcat / genCommonPostamble

Method genCommonPostamble

java/org/apache/jasper/compiler/Generator.java:3290–3312  ·  view source on GitHub ↗

Common part of postamble, shared by both servlets and tag files.

()

Source from the content-addressed store, hash-verified

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.

Callers 2

generatePostambleMethod · 0.95

Calls 8

getJavaLineMethod · 0.80
printMultiLnMethod · 0.80
popIndentMethod · 0.80
toStringMethod · 0.65
adjustJavaLinesMethod · 0.45
isUsedMethod · 0.45
generatePostambleMethod · 0.45
printilMethod · 0.45

Tested by

no test coverage detected