public final class JsWriter extends FilterWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
JsWriter.SymbolToOutputFilePosition |
outflushpublic 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 FilePosition 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 writeTokenForSymbol(String token, 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 void close(String suffix) throws IOException
IOExceptionpublic List<JsWriter.SymbolToOutputFilePosition> getSourceMappings()
public boolean isWritingComment()
Copyright © 2002–2021 CoreMedia AG. All rights reserved.