Package | Description |
---|---|
com.github.mustachejava | |
com.github.mustachejava.codes | |
com.github.mustachejava.util |
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<String,Mustache> |
DefaultMustacheFactory.mustacheCache
Create the default cache for mustache compilations.
|
protected ConcurrentHashMap<FragmentKey,Mustache> |
DefaultMustacheFactory.templateCache
New templates that are generated at runtime are cached here.
|
Modifier and Type | Method and Description |
---|---|
Mustache |
MustacheFactory.compile(Reader reader,
String name)
Create a mustache given a reader and a name.
|
Mustache |
MustacheParser.compile(Reader reader,
String file) |
Mustache |
DefaultMustacheFactory.compile(Reader reader,
String name) |
protected Mustache |
MustacheParser.compile(Reader reader,
String tag,
AtomicInteger currentLine,
String file,
String sm,
String em,
boolean startOfLine) |
Mustache |
MustacheParser.compile(Reader reader,
String file,
String sm,
String em) |
Mustache |
DefaultMustacheFactory.compile(Reader reader,
String file,
String sm,
String em) |
Mustache |
MustacheParser.compile(Reader reader,
String file,
String sm,
String em,
boolean startOfLine) |
Mustache |
MustacheFactory.compile(String name)
Create a mustache given a resource name.
|
Mustache |
MustacheParser.compile(String file) |
Mustache |
DefaultMustacheFactory.compile(String name) |
Mustache |
DefaultMustacheFactory.compilePartial(String s)
In order to handle recursion, we need a temporary thread local cache during compilation
that is ultimately thrown away after the top level partial is complete.
|
Mustache |
DefaultMustacheFactory.getFragment(FragmentKey templateKey) |
Mustache |
MustacheVisitor.mustache(TemplateContext templateContext) |
Mustache |
DefaultMustacheVisitor.mustache(TemplateContext templateContext) |
Modifier and Type | Method and Description |
---|---|
protected ConcurrentHashMap<FragmentKey,Mustache> |
DefaultMustacheFactory.createLambdaCache() |
protected ConcurrentHashMap<String,Mustache> |
DefaultMustacheFactory.createMustacheCache() |
protected Function<FragmentKey,Mustache> |
DefaultMustacheFactory.getFragmentCacheFunction() |
protected Function<String,Mustache> |
DefaultMustacheFactory.getMustacheCacheFunction() |
Modifier and Type | Method and Description |
---|---|
void |
MustacheVisitor.checkName(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
DefaultMustacheVisitor.checkName(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
MustacheVisitor.extend(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
DefaultMustacheVisitor.extend(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
MustacheVisitor.iterable(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
DefaultMustacheVisitor.iterable(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
MustacheVisitor.name(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
DefaultMustacheVisitor.name(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
MustacheVisitor.notIterable(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
DefaultMustacheVisitor.notIterable(TemplateContext templateContext,
String variable,
Mustache mustache) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultMustache
Default Mustache
|
Modifier and Type | Field and Description |
---|---|
protected Mustache |
DefaultCode.mustache |
protected Mustache |
PartialCode.partial |
Constructor and Description |
---|
DefaultCode(TemplateContext tc,
DefaultMustacheFactory df,
Mustache mustache,
String name,
String type) |
ExtendCheckNameCode(TemplateContext templateContext,
DefaultMustacheFactory df,
Mustache mustache,
String variable) |
ExtendCode(TemplateContext tc,
DefaultMustacheFactory mf,
Mustache codes,
String name) |
ExtendNameCode(TemplateContext templateContext,
DefaultMustacheFactory df,
Mustache mustache,
String variable) |
IterableCode(TemplateContext tc,
DefaultMustacheFactory df,
Mustache mustache,
String variable) |
IterableCode(TemplateContext tc,
DefaultMustacheFactory df,
Mustache mustache,
String variable,
String type) |
NotIterableCode(TemplateContext templateContext,
DefaultMustacheFactory df,
Mustache mustache,
String variable) |
PartialCode(TemplateContext tc,
DefaultMustacheFactory df,
Mustache mustache,
String type,
String variable) |
Modifier and Type | Method and Description |
---|---|
void |
CapturingMustacheVisitor.iterable(TemplateContext tc,
String variable,
Mustache mustache) |
void |
CapturingMustacheVisitor.notIterable(TemplateContext tc,
String variable,
Mustache mustache) |
Copyright © 2018. All rights reserved.