| Package | Description |
|---|---|
| com.github.mustachejava | |
| com.github.mustachejava.codes | |
| com.github.mustachejava.reflect |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Mustache
The interface to Mustache objects
|
| Modifier and Type | Field and Description |
|---|---|
private static Code[] |
DefaultMustacheVisitor.EMPTY_CODES |
private static Code |
DefaultMustacheVisitor.EOF |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Code> |
DefaultMustacheVisitor.list |
| Modifier and Type | Method and Description |
|---|---|
Code[] |
Code.getCodes() |
Code[] |
Mustache.getCodes()
Get the underlying code objects.
|
Code |
PragmaHandler.handle(TemplateContext tc,
java.lang.String pragma,
java.lang.String args) |
| Modifier and Type | Method and Description |
|---|---|
Binding |
ObjectHandler.createBinding(java.lang.String name,
TemplateContext tc,
Code code)
Each call site has its own binding to allow for fine grained caching without
a separate parallel hierarchy of objects.
|
Binding |
TypeCheckingHandler.createBinding(java.lang.String name,
TemplateContext tc,
Code code) |
void |
Code.setCodes(Code[] codes) |
void |
Mustache.setCodes(Code[] codes)
Change the underlying codes of the mustache implementation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
Code.clone(java.util.Set<Code> seen) |
| Modifier and Type | Class and Description |
|---|---|
class |
CommentCode |
class |
DefaultCode
Simplest possible code implementaion with some default shared behavior
|
class |
DefaultMustache
Default Mustache
|
class |
ExtendCheckNameCode
Name a section: {{$name}}...{{/name}}
|
class |
ExtendCode
Extending a template through in-place replacement of the overridden codes.
|
class |
ExtendNameCode
Name a section: {{$name}}...{{/name}}
|
class |
IterableCode |
class |
NotIterableCode
Runs the enclosed template once if the value is falsey.
|
class |
PartialCode |
class |
ValueCode
Output a value
|
class |
WriteCode
Write template text.
|
| Modifier and Type | Field and Description |
|---|---|
private Code[] |
DefaultMustache.codes |
| Modifier and Type | Method and Description |
|---|---|
Code[] |
DefaultCode.getCodes() |
Code[] |
DefaultMustache.getCodes() |
Code[] |
PartialCode.getCodes() |
private Code[] |
ExtendCode.replaceCodes(Code[] supercodes,
java.util.Map<java.lang.String,ExtendNameCode> replaceMap,
java.util.Set<Code> seen) |
| Modifier and Type | Method and Description |
|---|---|
private Code[] |
ExtendCode.replaceCodes(Code[] supercodes,
java.util.Map<java.lang.String,ExtendNameCode> replaceMap,
java.util.Set<Code> seen) |
void |
DefaultCode.setCodes(Code[] newcodes) |
void |
DefaultMustache.setCodes(Code[] newcodes) |
void |
PartialCode.setCodes(Code[] newcodes) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
DefaultCode.clone(java.util.Set<Code> seen) |
private Code[] |
ExtendCode.replaceCodes(Code[] supercodes,
java.util.Map<java.lang.String,ExtendNameCode> replaceMap,
java.util.Set<Code> seen) |
| Constructor and Description |
|---|
DefaultMustache(TemplateContext tc,
DefaultMustacheFactory df,
Code[] codes,
java.lang.String name) |
| Modifier and Type | Field and Description |
|---|---|
private Code |
GuardedBinding.code |
| Modifier and Type | Method and Description |
|---|---|
abstract Binding |
BaseObjectHandler.createBinding(java.lang.String name,
TemplateContext tc,
Code code) |
Binding |
ReflectionObjectHandler.createBinding(java.lang.String name,
TemplateContext tc,
Code code) |
Binding |
SimpleObjectHandler.createBinding(java.lang.String name,
TemplateContext tc,
Code code) |
| Constructor and Description |
|---|
GuardedBinding(ObjectHandler oh,
java.lang.String name,
TemplateContext tc,
Code code) |