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.ObjectA 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.Nodesbodyprivate java.io.CharArrayWritercharWriterprivate Nodenodeprotected ServletWriterout
-
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 voidadjustJavaLine(Node n, int offset)voidadjustJavaLines(int offset)Adjust the Java Lines.ServletWritergetOut()java.lang.StringtoString()
-
-
-
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:
toStringin 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)
-
-