Package de.neuland.jade4j.compiler
Class IndentWriter
- java.lang.Object
-
- de.neuland.jade4j.compiler.IndentWriter
-
public class IndentWriter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private booleancompiledDoctypeprivate booleancompiledTagprivate booleanemptyprivate booleanescapeprivate intindentprivate intparentIndentsprivate java.lang.Stringppprivate booleanuseIndentprivate java.io.Writerwriter
-
Constructor Summary
Constructors Constructor Description IndentWriter(java.io.Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndentWriteradd(java.lang.String string)IndentWriterappend(java.lang.String string)voiddecrement()voidincrement()booleanisCompiledDoctype()booleanisCompiledTag()booleanisEscape()booleanisPp()voidnewline()voidprettyIndent(int offset, boolean newline)voidsetCompiledDoctype(boolean compiledDoctype)voidsetCompiledTag(boolean compiledTag)voidsetEscape(boolean escape)voidsetUseIndent(boolean useIndent)java.lang.StringtoString()private voidwrite(java.lang.String string)
-
-
-
Field Detail
-
indent
private int indent
-
parentIndents
private int parentIndents
-
useIndent
private boolean useIndent
-
empty
private boolean empty
-
writer
private java.io.Writer writer
-
pp
private java.lang.String pp
-
escape
private boolean escape
-
compiledTag
private boolean compiledTag
-
compiledDoctype
private boolean compiledDoctype
-
-
Method Detail
-
add
public IndentWriter add(java.lang.String string)
-
append
public IndentWriter append(java.lang.String string)
-
increment
public void increment()
-
decrement
public void decrement()
-
write
private void write(java.lang.String string)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newline
public void newline()
-
prettyIndent
public void prettyIndent(int offset, boolean newline)
-
setUseIndent
public void setUseIndent(boolean useIndent)
-
setEscape
public void setEscape(boolean escape)
-
isEscape
public boolean isEscape()
-
isPp
public boolean isPp()
-
setCompiledTag
public void setCompiledTag(boolean compiledTag)
-
isCompiledTag
public boolean isCompiledTag()
-
isCompiledDoctype
public boolean isCompiledDoctype()
-
setCompiledDoctype
public void setCompiledDoctype(boolean compiledDoctype)
-
-