|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.caja.reporting.RenderContext
public class RenderContext
Renderable
Field Summary | |
---|---|
private boolean |
asciiOnly
Produce output that only contains lower 7-bit characters. |
private boolean |
embeddable
Produce output that can be safely embedded. |
private boolean |
json
Should javascript output be rendered using JSON conventions. |
private MarkupRenderMode |
markupMode
True iff DOM tree nodes should be rendered as XML. |
private TokenConsumer |
out
|
private boolean |
rawObjKeys
True iff object ctor keys that are JS identifiers can be rendered without quotes. |
Constructor Summary | |
---|---|
private |
RenderContext(boolean asciiOnly,
boolean embeddable,
boolean json,
MarkupRenderMode markupMode,
boolean rawObjKeys,
TokenConsumer out)
|
|
RenderContext(TokenConsumer out)
|
Method Summary | |
---|---|
boolean |
asJson()
|
boolean |
asXml()
True iff DOM tree nodes should be rendered as XML. |
TokenConsumer |
getOut()
|
boolean |
isAsciiOnly()
True if the renderer produces output that only contains characters in [\1-\x7f] . |
boolean |
isEmbeddable()
True if the renderer produces output that can be embedded inside a CDATA section, or script element without further escaping? |
MarkupRenderMode |
markupRenderMode()
|
boolean |
rawObjKeys()
|
RenderContext |
withAsciiOnly(boolean b)
|
RenderContext |
withAsXml(boolean b)
Deprecated. |
RenderContext |
withEmbeddable(boolean b)
|
RenderContext |
withJson(boolean b)
|
RenderContext |
withMarkupRenderMode(MarkupRenderMode markupMode)
|
RenderContext |
withRawObjKeys(boolean b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final boolean embeddable
private final boolean asciiOnly
private final boolean json
private final MarkupRenderMode markupMode
private final boolean rawObjKeys
private final TokenConsumer out
Constructor Detail |
---|
public RenderContext(TokenConsumer out)
private RenderContext(boolean asciiOnly, boolean embeddable, boolean json, MarkupRenderMode markupMode, boolean rawObjKeys, TokenConsumer out)
Method Detail |
---|
public final boolean isEmbeddable()
script
element without further escaping?
public final boolean isAsciiOnly()
[\1-\x7f]
.
public final boolean asJson()
public final boolean asXml()
public final MarkupRenderMode markupRenderMode()
public final boolean rawObjKeys()
public final TokenConsumer getOut()
public RenderContext withAsciiOnly(boolean b)
public RenderContext withEmbeddable(boolean b)
public RenderContext withJson(boolean b)
public RenderContext withMarkupRenderMode(MarkupRenderMode markupMode)
@Deprecated public RenderContext withAsXml(boolean b)
public RenderContext withRawObjKeys(boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |