public class JspJavaWriter extends JavaWriter
Constructor and Description |
---|
JspJavaWriter(WriteStream os,
JavaJspGenerator gen) |
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String text)
Adds text to the current buffer.
|
protected void |
flushText()
Generates the code for the static text
|
void |
popDepth()
Pops an indentation depth.
|
void |
print(boolean b)
Prints a boolean.
|
void |
print(char ch)
Prints a character.
|
void |
print(int i)
Prints an integer.
|
void |
print(long l)
Prints an long
|
void |
print(java.lang.Object o)
Prints an object.
|
void |
print(java.lang.String s)
Prints a string
|
void |
printJavaString(java.lang.String s)
Prints a Java escaped string
|
void |
println()
Prints a newline
|
void |
println(boolean v)
Prints a boolean with a new line
|
void |
println(char ch)
Prints a character.
|
void |
println(int v)
Prints an integer with a new line
|
void |
println(long v)
Prints an long with a new line
|
void |
println(java.lang.Object v)
Prints an object with a new line
|
void |
println(java.lang.String s)
Prints a string with a new line
|
void |
pushDepth()
Pushes an indentation depth.
|
void |
setLocation(java.lang.String filename,
int line)
Sets the source filename and line.
|
close, errorMessage, escapeJavaString, flush, generateId, generateSmap, getDestLine, getLineMap, getWriteStream, printClass, printIndent, printJavaChar, printJavaTypeToObject, printJavaTypeToObject, printType, printVarType, setLineMap, setPreferLast, write
public JspJavaWriter(WriteStream os, JavaJspGenerator gen)
public void addText(java.lang.String text) throws java.io.IOException
java.io.IOException
public void setLocation(java.lang.String filename, int line) throws java.io.IOException
setLocation
in class JavaWriter
filename
- the filename of the source file.line
- the line of the source file.java.io.IOException
protected void flushText() throws java.io.IOException
out
- the output writer for the generated java.java.io.IOException
public void printJavaString(java.lang.String s) throws java.io.IOException
printJavaString
in class JavaWriter
java.io.IOException
public void pushDepth() throws java.io.IOException
pushDepth
in class JavaWriter
java.io.IOException
public void popDepth() throws java.io.IOException
popDepth
in class JavaWriter
java.io.IOException
public void print(java.lang.String s) throws java.io.IOException
print
in class JavaWriter
java.io.IOException
public void print(char ch) throws java.io.IOException
print
in class JavaWriter
java.io.IOException
public void print(boolean b) throws java.io.IOException
print
in class JavaWriter
java.io.IOException
public void print(int i) throws java.io.IOException
print
in class JavaWriter
java.io.IOException
public void print(long l) throws java.io.IOException
print
in class JavaWriter
java.io.IOException
public void print(java.lang.Object o) throws java.io.IOException
print
in class JavaWriter
java.io.IOException
public void println(java.lang.String s) throws java.io.IOException
println
in class JavaWriter
java.io.IOException
public void println(boolean v) throws java.io.IOException
println
in class JavaWriter
java.io.IOException
public void println(char ch) throws java.io.IOException
println
in class JavaWriter
java.io.IOException
public void println(int v) throws java.io.IOException
println
in class JavaWriter
java.io.IOException
public void println(long v) throws java.io.IOException
println
in class JavaWriter
java.io.IOException
public void println(java.lang.Object v) throws java.io.IOException
println
in class JavaWriter
java.io.IOException
public void println() throws java.io.IOException
println
in class JavaWriter
java.io.IOException