Package org.apache.jasper.compiler
Class Generator.GenBuffer
- java.lang.Object
-
- org.apache.jasper.compiler.Generator.GenBuffer
-
- Enclosing class:
- Generator
private static class Generator.GenBuffer extends java.lang.Object
A class for generating codes to a buffer. Included here are some support for tracking source to Java lines mapping.
-
-
Field Summary
Fields Modifier and Type Field Description private Node.Nodes
body
private java.io.CharArrayWriter
charWriter
private Node
node
protected ServletWriter
out
-
Constructor Summary
Constructors Constructor Description GenBuffer()
GenBuffer(Node n, Node.Nodes b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
adjustJavaLine(Node n, int offset)
void
adjustJavaLines(int offset)
Adjust the Java Lines.ServletWriter
getOut()
java.lang.String
toString()
-
-
-
Field Detail
-
node
private Node node
-
body
private Node.Nodes body
-
charWriter
private java.io.CharArrayWriter charWriter
-
out
protected ServletWriter out
-
-
Constructor Detail
-
GenBuffer
GenBuffer()
-
GenBuffer
GenBuffer(Node n, Node.Nodes b)
-
-
Method Detail
-
getOut
public ServletWriter getOut()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
private static void adjustJavaLine(Node n, int offset)
-
-