Package de.hsh.graja.util.comment
Class RenderContext
- java.lang.Object
-
- de.hsh.graja.util.comment.RenderContext
-
- All Implemented Interfaces:
Serializable
,Iterable<Class<? extends Content>>
public class RenderContext extends Object implements Iterable<Class<? extends Content>>, Serializable
A render context holds data about subclasses ofContent
that have been rendered. This information is used by {@link Content#renderHtml(StringBuilder, IncludeInfo, RenderContext, boolean))} to include certain javascript only once in the rendered output.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RenderContext(String namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClass(Class<? extends Content> cls)
boolean
equals(Object obj)
String
getId()
int
hashCode()
boolean
isJavascriptConsoleLoggingEnabled()
boolean
isRenderedClass(Class<? extends Content> cls)
Iterator<Class<? extends Content>>
iterator()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-