Package | Description |
---|---|
freemarker.core |
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template . |
freemarker.template |
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (see also the
Getting Stared in the Manual.) |
freemarker.template.utility |
Various classes used by core FreeMarker code but might be useful outside of it too.
|
Modifier and Type | Method and Description |
---|---|
ParseException |
FMParser.generateParseException()
Generate ParseException.
|
ParseException |
TokenMgrError.toParseException(Template template) |
Modifier and Type | Method and Description |
---|---|
Expression |
FMParser.AdditiveExpression() |
Expression |
FMParser.AddSubExpression(Expression exp)
Production that builds up an expression
using the dot or dynamic key name
or the args list if this is a method invocation.
|
Expression |
FMParser.AndExpression() |
TemplateElement |
FMParser.Assign() |
freemarker.core.AttemptBlock |
FMParser.Attempt() |
Expression |
FMParser.BooleanLiteral() |
freemarker.core.BreakInstruction |
FMParser.Break()
Production used to break out of a loop or a switch block.
|
Expression |
FMParser.BuiltIn(Expression lhoExp) |
freemarker.core.BuiltinVariable |
FMParser.BuiltinVariable() |
TemplateElement |
FMParser.Call() |
freemarker.core.Case |
FMParser.Case() |
Comment |
FMParser.Comment() |
freemarker.core.CompressedBlock |
FMParser.Compress() |
Expression |
FMParser.DefaultTo(Expression exp) |
Expression |
FMParser.DotVariable(Expression exp)
production for when a key is specified by
|
Expression |
FMParser.DynamicKey(Expression exp)
production for when the key is specified
in brackets.
|
freemarker.core.ElseOfList |
FMParser.ElseOfList() |
Expression |
FMParser.EqualityExpression() |
freemarker.core.EscapeBlock |
FMParser.Escape() |
Expression |
FMParser.Exists(Expression exp) |
Expression |
FMParser.Expression()
This is the same as OrExpression, since
the OR is the operator with the lowest
precedence.
|
freemarker.core.FallbackInstruction |
FMParser.FallBack() |
TemplateElement |
FMParser.Flush() |
freemarker.core.IteratorBlock |
FMParser.ForEach() |
TemplateElement |
FMParser.FreemarkerDirective()
A production for FreeMarker directives.
|
TemplateElement |
FMParser.FreeMarkerText()
A production freemarker text that may contain
${...} and #{...} but no directives.
|
freemarker.core.HashLiteral |
FMParser.HashLiteral() |
void |
FMParser.HeaderElement() |
freemarker.core.Identifier |
FMParser.Identifier() |
Expression |
FMParser.IdentifierOrStringLiteral() |
TemplateElement |
FMParser.If() |
LibraryLoad |
FMParser.Import() |
freemarker.core.Include |
FMParser.Include() |
freemarker.core.Items |
FMParser.Items() |
TemplateElement |
FMParser.List() |
freemarker.core.ListLiteral |
FMParser.ListLiteral() |
Token |
FMParser.LooseDirectiveEnd()
Production to terminate potentially empty elements.
|
Macro |
FMParser.Macro() |
freemarker.core.MethodCall |
FMParser.MethodArgs(Expression exp)
production for an arglist part of a method invocation.
|
freemarker.core.MixedContent |
FMParser.MixedContent() |
Expression |
FMParser.MultiplicativeExpression()
A unary expression followed by zero or more
unary expressions with operators in between.
|
HashMap |
FMParser.NamedArgs() |
TemplateElement |
FMParser.Nested() |
freemarker.core.NoEscapeBlock |
FMParser.NoEscape() |
TextBlock |
FMParser.NoParse() |
Expression |
FMParser.NotExpression() |
Expression |
FMParser.NumberLiteral() |
freemarker.core.NumericalOutput |
FMParser.NumericalOutput() |
TemplateElement |
FMParser.OptionalBlock()
A production for a block of optional content.
|
Expression |
FMParser.OrExpression() |
Map |
FMParser.ParamList() |
Expression |
FMParser.Parenthesis() |
protected HashMap |
Configurable.parseAsImportList(String text) |
protected ArrayList |
Configurable.parseAsList(String text) |
protected ArrayList |
Configurable.parseAsSegmentedList(String text) |
TextBlock |
FMParser.PCData()
Production for a block of raw text
i.e.
|
ArrayList |
FMParser.PositionalArgs() |
Expression |
FMParser.PrimaryExpression()
Lowest level expression, a literal, a variable,
or a possibly more complex expression bounded
by parentheses.
|
Expression |
FMParser.RangeExpression() |
freemarker.core.RecoveryBlock |
FMParser.Recover() |
freemarker.core.RecurseNode |
FMParser.Recurse() |
Expression |
FMParser.RelationalExpression() |
ReturnInstruction |
FMParser.Return()
Production used to jump out of a macro.
|
TemplateElement |
FMParser.Root()
Root production to be used when parsing
an entire file.
|
freemarker.core.Sep |
FMParser.Sep() |
freemarker.core.PropertySetting |
FMParser.Setting() |
freemarker.core.StopInstruction |
FMParser.Stop() |
freemarker.core.StringLiteral |
FMParser.StringLiteral(boolean interpolate) |
freemarker.core.DollarVariable |
FMParser.StringOutput()
A production representing the ${...}
that outputs a variable.
|
freemarker.core.SwitchBlock |
FMParser.Switch() |
freemarker.core.TransformBlock |
FMParser.Transform() |
TemplateElement |
FMParser.Trim() |
Expression |
FMParser.UnaryExpression()
A primary expression preceded by zero or
more unary operators.
|
Expression |
FMParser.UnaryPlusMinusExpression() |
TemplateElement |
FMParser.UnifiedMacroTransform() |
Token |
FMParser.UnparsedContent(Token start,
StringBuffer buf)
Production for dealing with unparsed content,
i.e.
|
freemarker.core.VisitNode |
FMParser.Visit() |
Modifier and Type | Class and Description |
---|---|
static class |
Template.WrongEncodingException
Thrown by the
Template constructors that specify a non-null encoding whoch doesn't match the
encoding specified in the #ftl header of the template. |
Modifier and Type | Method and Description |
---|---|
Template |
Configuration.getTemplate(String name)
Retrieves the template with the given name from the template cache, loading it into the cache first if it's
missing/staled.
|
Template |
Configuration.getTemplate(String name,
Locale locale)
Shorthand for
getTemplate(name, locale, null, null, true, false) . |
Template |
Configuration.getTemplate(String name,
Locale locale,
Object customLookupCondition,
String encoding,
boolean parseAsFTL,
boolean ignoreMissing)
Retrieves the template with the given name (and according the specified further parameters) from the template
cache, loading it into the cache first if it's missing/staled.
|
Template |
Configuration.getTemplate(String name,
Locale locale,
String encoding)
Shorthand for
getTemplate(name, locale, null, encoding, true, false) . |
Template |
Configuration.getTemplate(String name,
Locale locale,
String encoding,
boolean parseAsFTL)
Shorthand for
getTemplate(name, locale, null, encoding, parseAsFTL, false) . |
Template |
Configuration.getTemplate(String name,
Locale locale,
String encoding,
boolean parseAsFTL,
boolean ignoreMissing)
|
Template |
Configuration.getTemplate(String name,
String encoding)
Shorthand for
getTemplate(name, null, null, encoding, true, false) . |
Modifier and Type | Method and Description |
---|---|
static String |
StringUtil.FTLStringLiteralDec(String s)
FTL string literal decoding.
|
Copyright © 2016. All Rights Reserved.