Package com.fizzed.rocker.runtime
Class DefaultRockerTemplate.Internal
java.lang.Object
com.fizzed.rocker.runtime.DefaultRockerTemplate.Internal
- Enclosing class:
DefaultRockerTemplate
Internal state of a template.
Simple way to hide internal variables from template (which of course
are subclasses of this class).
This is an internal API and it may radically change over time. Using
this for workaround, etc. is not recommended.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate ContentTypeprivate RockerOutputprivate booleanprivate intprivate intprivate RockerStringifyprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaboutToExecutePosInTemplate(int line, int posInLine) getOut()booleanrenderValue(boolean v, boolean nullSafe) booleanrenderValue(byte v, boolean nullSafe) booleanrenderValue(char v, boolean nullSafe) booleanrenderValue(double v, boolean nullSafe) booleanrenderValue(float v, boolean nullSafe) booleanrenderValue(int v, boolean nullSafe) booleanrenderValue(long v, boolean nullSafe) booleanrenderValue(short v, boolean nullSafe) booleanrenderValue(BindableRockerModel model, boolean nullSafe) booleanrenderValue(RockerContent c, boolean nullSafe) booleanrenderValue(DefaultRockerModel model, boolean nullSafe) booleanrenderValue(Raw raw, boolean nullSafe) booleanrenderValue(Object value, boolean nullSafe) booleanrenderValue(String value, boolean nullSafe) voidsetCharset(String charset) voidsetContentType(ContentType contentType) voidsetContentType(ContentType contentType, RockerStringify stringify) voidsetOut(RockerOutput out) voidsetStringify(RockerStringify stringify) voidsetTemplateName(String templateName) voidsetTemplatePackageName(String templatePackageName) voidvoidprotected voidvoidwriteValue(byte[] bytes) voidwriteValue(String s)
-
Field Details
-
charset
-
contentType
-
stringify
-
out
-
rendered
private boolean rendered -
sourceLine
private int sourceLine -
sourcePosInLine
private int sourcePosInLine -
templateName
-
templatePackageName
-
-
Constructor Details
-
Internal
private Internal()
-
-
Method Details
-
getTemplateName
-
setTemplateName
-
getTemplatePackageName
-
setTemplatePackageName
-
getCharset
-
setCharset
-
aboutToExecutePosInTemplate
public void aboutToExecutePosInTemplate(int line, int posInLine) -
getContentType
-
setContentType
-
setContentType
-
getStringify
-
setStringify
-
getOut
-
setOut
-
verifyOkToBeginRendering
protected void verifyOkToBeginRendering() -
throwBreakException
- Throws:
BreakException
-
throwContinueException
- Throws:
ContinueException
-
writeValue
- Throws:
IOException
-
writeValue
- Throws:
IOException
-
renderValue
public boolean renderValue(RockerContent c, boolean nullSafe) throws RenderingException, IOException - Throws:
RenderingExceptionIOException
-
renderValue
public boolean renderValue(DefaultRockerModel model, boolean nullSafe) throws RenderingException, IOException - Throws:
RenderingExceptionIOException
-
renderValue
public boolean renderValue(BindableRockerModel model, boolean nullSafe) throws RenderingException, IOException - Throws:
RenderingExceptionIOException
-
renderValue
- Throws:
RenderingExceptionIOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-
renderValue
- Throws:
IOException
-