Package org.apache.jasper.compiler
Class Generator.GenBuffer
java.lang.Object
org.apache.jasper.compiler.Generator.GenBuffer
- Enclosing class:
Generator
A class for generating codes to a buffer. Included here are some
support for tracking source to Java lines mapping.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Node.Nodes
private CharArrayWriter
private Node
protected ServletWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
adjustJavaLine
(Node n, int offset) void
adjustJavaLines
(int offset) Adjust the Java Lines.getOut()
toString()
-
Field Details
-
node
-
body
-
charWriter
-
out
-
-
Constructor Details
-
GenBuffer
GenBuffer() -
GenBuffer
GenBuffer(Node n, Node.Nodes b)
-
-
Method Details
-
getOut
-
toString
-
adjustJavaLines
public void adjustJavaLines(int offset) Adjust the Java Lines. This is necessary because the Java lines stored with the nodes are relative the beginning of this buffer and need to be adjusted when this buffer is inserted into the source. -
adjustJavaLine
-