public final class JsWriter extends FilterWriter
out| Modifier and Type | Method and Description |
|---|---|
void |
beginComment() |
void |
beginCommentWriteSymbol(JooSymbol symbol) |
void |
beginString() |
void |
close() |
void |
endComment() |
void |
endString() |
boolean |
getKeepLines() |
boolean |
getKeepSource() |
JoocOptions |
getOptions() |
String |
getQualifiedNameAsIde(IdeDeclaration ideDeclaration) |
boolean |
isWritingComment() |
void |
setOptions(JoocOptions options) |
void |
setSuppressWhitespace(boolean suppressWhitespace) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
void |
writeArray(Object[] items) |
void |
writeDate(Calendar value) |
void |
writeDate(Date value) |
void |
writeInt(int value) |
protected void |
writeLines(String s) |
protected void |
writeLines(String s,
int off,
int len) |
void |
writeObject(Object o) |
void |
writeString(String value) |
void |
writeSymbol(JooSymbol symbol) |
void |
writeSymbol(JooSymbol symbol,
boolean withWhitespace) |
void |
writeSymbolToken(JooSymbol symbol) |
void |
writeSymbolWhitespace(JooSymbol symbol) |
void |
writeToken(String token) |
flushpublic JsWriter(Writer target)
public void setOptions(JoocOptions options)
public JoocOptions getOptions()
public boolean getKeepSource()
public boolean getKeepLines()
public void writeInt(int value)
throws IOException
IOExceptionpublic void writeString(String value) throws IOException
IOExceptionpublic void writeDate(Date value) throws IOException
IOExceptionpublic void writeDate(Calendar value) throws IOException
IOExceptionpublic void writeObject(Object o) throws IOException
IOExceptionpublic void writeArray(Object[] items) throws IOException
IOExceptionpublic void beginComment()
throws IOException
IOExceptionpublic void endComment()
throws IOException
IOExceptionpublic void beginCommentWriteSymbol(JooSymbol symbol) throws IOException
IOExceptionpublic void beginString()
throws IOException
IOExceptionpublic void endString()
throws IOException
IOExceptionpublic void setSuppressWhitespace(boolean suppressWhitespace)
public void writeSymbolWhitespace(JooSymbol symbol) throws IOException
IOExceptionprotected void writeLines(String s) throws IOException
IOExceptionprotected void writeLines(String s, int off, int len) throws IOException
IOExceptionpublic void writeToken(String token) throws IOException
IOExceptionpublic void writeSymbol(JooSymbol symbol) throws IOException
IOExceptionpublic void writeSymbol(JooSymbol symbol, boolean withWhitespace) throws IOException
IOExceptionpublic void writeSymbolToken(JooSymbol symbol) throws IOException
IOExceptionpublic void write(int c)
throws IOException
write in class FilterWriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class FilterWriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class FilterWriterIOExceptionpublic String getQualifiedNameAsIde(IdeDeclaration ideDeclaration)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterWriterIOExceptionpublic boolean isWritingComment()
Copyright © 2002–2015 CoreMedia AG. All rights reserved.