Skip navigation links
B C D E F G H I K L M N S T W Z 

B

BasicCollector - Class in com.samskivert.mustache
A collector that does not use reflection and can be used with GWT.
BasicCollector() - Constructor for class com.samskivert.mustache.BasicCollector
 

C

collector - Variable in class com.samskivert.mustache.Mustache.Compiler
The collector used by templates compiled with this compiler.
com.samskivert.mustache - package com.samskivert.mustache
 
compile(String) - Method in class com.samskivert.mustache.Mustache.Compiler
Compiles the supplied template into a repeatedly executable intermediate form.
compile(Reader) - Method in class com.samskivert.mustache.Mustache.Compiler
Compiles the supplied template into a repeatedly executable intermediate form.
compiler() - Static method in class com.samskivert.mustache.Mustache
Returns a compiler that escapes HTML by default and does not use standards mode.
computeNullValue(String) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns the value to use in the template for the null-valued property name.
Context(String, String, int) - Constructor for exception com.samskivert.mustache.MustacheException.Context
 
Context(String, String, int, Throwable) - Constructor for exception com.samskivert.mustache.MustacheException.Context
 
context() - Method in class com.samskivert.mustache.Template.Fragment
Returns the context object in effect for this fragment.
context(int) - Method in class com.samskivert.mustache.Template.Fragment
Like Template.Fragment.context() btu returns the nth parent context object.
createFetcher(Object, String) - Method in class com.samskivert.mustache.BasicCollector
 
createFetcher(Object, String) - Method in class com.samskivert.mustache.DefaultCollector
 
createFetcher(Object, String) - Method in interface com.samskivert.mustache.Mustache.Collector
Creates a fetcher for a so-named variable in the supplied context object, which will never be null.
createFetcherCache() - Method in class com.samskivert.mustache.BasicCollector
This should return a thread-safe map, either Collections.synchronizedMap(java.util.Map<K, V>) called on a standard Map implementation or something like ConcurrentHashMap.
createFetcherCache() - Method in class com.samskivert.mustache.DefaultCollector
 
createFetcherCache() - Method in interface com.samskivert.mustache.Mustache.Collector
Creates a map to be used to cache Mustache.VariableFetcher instances.

D

decompile() - Method in class com.samskivert.mustache.Template.Fragment
Decompiles the template inside this lamdba and returns an approximation of the original template from which it was parsed.
decompile(StringBuilder) - Method in class com.samskivert.mustache.Template.Fragment
Decompiles this fragment into into.
DefaultCollector - Class in com.samskivert.mustache
The default collector used by JMustache.
DefaultCollector() - Constructor for class com.samskivert.mustache.DefaultCollector
 
defaultValue(String) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler that will use the given value for any variable that is missing, or otherwise resolves to null.
delims - Variable in class com.samskivert.mustache.Mustache.Compiler
The delimiters used by default in templates compiled with this compiler.

E

emptyStringIsFalse - Variable in class com.samskivert.mustache.Mustache.Compiler
If this value is true, empty string will be treated as a false value, as in JavaScript mustache implementation.
emptyStringIsFalse(boolean) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler that will treat empty string as a false value if parameter is true.
escape(String) - Method in interface com.samskivert.mustache.Mustache.Escaper
Returns raw with the appropriate characters replaced with escape sequences.
escapeHTML(boolean) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler that either does or does not escape HTML by default.
escaper - Variable in class com.samskivert.mustache.Mustache.Compiler
Handles escaping characters in substituted text.
Escapers - Class in com.samskivert.mustache
Defines some standard Mustache.Escapers.
Escapers() - Constructor for class com.samskivert.mustache.Escapers
 
execute(Template.Fragment, Writer) - Method in interface com.samskivert.mustache.Mustache.Lambda
Executes this lambda on the supplied template fragment.
execute(Object) - Method in class com.samskivert.mustache.Template
Executes this template with the given context, returning the results as a string.
execute(Object, Writer) - Method in class com.samskivert.mustache.Template
Executes this template with the given context, writing the results to the supplied writer.
execute(Object, Object, Writer) - Method in class com.samskivert.mustache.Template
Executes this template with the supplied context and parent context, writing the results to the supplied writer.
execute(Writer) - Method in class com.samskivert.mustache.Template.Fragment
Executes this fragment; writes its result to out.
execute(Object, Writer) - Method in class com.samskivert.mustache.Template.Fragment
Executes this fragment with the provided context; writes its result to out.
execute() - Method in class com.samskivert.mustache.Template.Fragment
Executes this fragment and returns its result as a string.
execute(Object) - Method in class com.samskivert.mustache.Template.Fragment
Executes this fragment with the provided context; returns its result as a string.
executeInverse(Template.Fragment, Writer) - Method in interface com.samskivert.mustache.Mustache.InvertibleLambda
Executes this lambda on the supplied template fragment, when the lambda is used in an inverse section.

F

format(Object) - Method in interface com.samskivert.mustache.Mustache.Formatter
Converts value to a string for inclusion in a template.
formatter - Variable in class com.samskivert.mustache.Mustache.Compiler
Handles converting objects to strings when rendering a template.
Fragment() - Constructor for class com.samskivert.mustache.Template.Fragment
 

G

get(Object, String) - Method in interface com.samskivert.mustache.Mustache.VariableFetcher
Reads the so-named variable from the supplied context object.
getTemplate(String) - Method in interface com.samskivert.mustache.Mustache.TemplateLoader
Returns a reader for the template with the supplied name.

H

HTML - Static variable in class com.samskivert.mustache.Escapers
Escapes HTML entities.

I

isFalsey(Object) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns true if the supplied value is "falsey".

K

key - Variable in exception com.samskivert.mustache.MustacheException.Context
The key that caused the problem.

L

lineNo - Variable in exception com.samskivert.mustache.MustacheException.Context
The line number of the template on which the problem occurred.
loader - Variable in class com.samskivert.mustache.Mustache.Compiler
The template loader in use during this compilation.

M

missingIsNull - Variable in class com.samskivert.mustache.Mustache.Compiler
If this value is true, missing variables will be treated like variables that return null.
Mustache - Class in com.samskivert.mustache
Provides Mustache templating services.
Mustache.Collector - Interface in com.samskivert.mustache
Handles interpreting objects as collections.
Mustache.Compiler - Class in com.samskivert.mustache
Compiles templates into executable form.
Mustache.Escaper - Interface in com.samskivert.mustache
Handles escaping characters in substituted text.
Mustache.Formatter - Interface in com.samskivert.mustache
Handles converting objects to strings when rendering templates.
Mustache.InvertibleLambda - Interface in com.samskivert.mustache
Handles lambdas that are also invoked for inverse sections..
Mustache.Lambda - Interface in com.samskivert.mustache
Handles lambdas.
Mustache.TemplateLoader - Interface in com.samskivert.mustache
Handles loading partial templates.
Mustache.VariableFetcher - Interface in com.samskivert.mustache
Reads variables from context objects.
MustacheException - Exception in com.samskivert.mustache
An exception thrown when an error occurs parsing or executing a Mustache template.
MustacheException(String) - Constructor for exception com.samskivert.mustache.MustacheException
 
MustacheException(Throwable) - Constructor for exception com.samskivert.mustache.MustacheException
 
MustacheException(String, Throwable) - Constructor for exception com.samskivert.mustache.MustacheException
 
MustacheException.Context - Exception in com.samskivert.mustache
An exception thrown if we encounter a context error (e.g.
MustacheParseException - Exception in com.samskivert.mustache
An exception thrown if we encounter an error while parsing a template.
MustacheParseException(String) - Constructor for exception com.samskivert.mustache.MustacheParseException
 
MustacheParseException(String, int) - Constructor for exception com.samskivert.mustache.MustacheParseException
 

N

NO_FETCHER_FOUND - Static variable in class com.samskivert.mustache.Template
A sentinel object that can be returned by a Mustache.Collector to indicate that a variable does not exist in a particular context.
NONE - Static variable in class com.samskivert.mustache.Escapers
An escaper that does no escaping.
nullValue - Variable in class com.samskivert.mustache.Mustache.Compiler
A value to use when a variable resolves to null.
nullValue(String) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler that will use the given value for any variable that resolves to null, but will still raise an exception for variables for which an accessor cannot be found.

S

simple(String[]...) - Static method in class com.samskivert.mustache.Escapers
Returns an escaper that replaces a list of text sequences with canned replacements.
standardsMode - Variable in class com.samskivert.mustache.Mustache.Compiler
Whether or not standards mode is enabled.
standardsMode(boolean) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler that either does or does not use standards mode.
strictSections - Variable in class com.samskivert.mustache.Mustache.Compiler
Whether or not to throw an exception when a section resolves to a missing value.
strictSections(boolean) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler that throws an exception when a section references a missing value (true) or treats a missing value as false (false, the default).

T

Template - Class in com.samskivert.mustache
Represents a compiled template.
Template.Fragment - Class in com.samskivert.mustache
Encapsulates a fragment of a template that is passed to a lambda.
toIterator(Object) - Method in class com.samskivert.mustache.BasicCollector
 
toIterator(Object) - Method in interface com.samskivert.mustache.Mustache.Collector
Returns an iterator that can iterate over the supplied value, or null if the value is not a collection.

W

withCollector(Mustache.Collector) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler configured to use the supplied collector.
withDelims(String) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler configured to use the supplied delims as default delimiters.
withEscaper(Mustache.Escaper) - Method in class com.samskivert.mustache.Mustache.Compiler
Configures the Mustache.Escaper used to escape substituted text.
withFormatter(Mustache.Formatter) - Method in class com.samskivert.mustache.Mustache.Compiler
Configures the Mustache.Formatter used to turn objects into strings.
withLoader(Mustache.TemplateLoader) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler configured to use the supplied template loader to handle partials.

Z

zeroIsFalse - Variable in class com.samskivert.mustache.Mustache.Compiler
If this value is true, zero will be treated as a false value, as in JavaScript mustache implementation.
zeroIsFalse(boolean) - Method in class com.samskivert.mustache.Mustache.Compiler
Returns a compiler that will treat zero as a false value if parameter is true.
B C D E F G H I K L M N S T W Z 
Skip navigation links

Copyright © 2016. All rights reserved.