Package org.thymeleaf.util
Class LazyProcessingCharSequence
- java.lang.Object
-
- org.thymeleaf.util.AbstractLazyCharSequence
-
- org.thymeleaf.util.LazyProcessingCharSequence
-
- All Implemented Interfaces:
java.lang.CharSequence,IWritableCharSequence
public final class LazyProcessingCharSequence extends AbstractLazyCharSequence
Character sequence that performs a lazy evaluation of a
TemplateModelby the template engine.It is used sometimes internally by the engine in order to avoid the creation of extra String objects in some scenarios (e.g. inliners).
This is mostly an internal class, and its use is not recommended from user's code.
This class is not thread-safe.
- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private ITemplateContextcontextprivate TemplateModeltemplateModel
-
Constructor Summary
Constructors Constructor Description LazyProcessingCharSequence(ITemplateContext context, TemplateModel templateModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringresolveText()protected voidwriteUnresolved(java.io.Writer writer)-
Methods inherited from class org.thymeleaf.util.AbstractLazyCharSequence
charAt, equals, hashCode, length, subSequence, toString, write
-
-
-
-
Field Detail
-
context
private final ITemplateContext context
-
templateModel
private final TemplateModel templateModel
-
-
Constructor Detail
-
LazyProcessingCharSequence
public LazyProcessingCharSequence(ITemplateContext context, TemplateModel templateModel)
-
-
Method Detail
-
resolveText
protected java.lang.String resolveText()
- Specified by:
resolveTextin classAbstractLazyCharSequence
-
writeUnresolved
protected void writeUnresolved(java.io.Writer writer) throws java.io.IOException- Specified by:
writeUnresolvedin classAbstractLazyCharSequence- Throws:
java.io.IOException
-
-