Serialized Form


Package freemarker.ext.misc

Class freemarker.ext.misc.ExtendedHash implements Serializable

Class freemarker.ext.misc.ExtendedList implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization purposes, read this object in a specialized manner. This resets the shelf life to the current time.
Serialized Fields

shelfLife

long shelfLife
The shelf life in milliseconds of this ExtendedList.

isPermanent

boolean isPermanent
Whether this ExtendedList has an indefinite shelf life.

Class freemarker.ext.misc.RootModelWrapper implements Serializable

Serialized Fields

rootModel

java.util.Map rootModel
The map containing temporary values for the root model.
a Map containing any values added to the template model at run time.

hashModel

TemplateHashModel hashModel
The underlying template hash being wrapped.
the underlying TemplateHashModel being wrapped by this wrapper object


Package freemarker.ext.servlet

Class freemarker.ext.servlet.FreeMarkerServlet implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization purposes, we recreate the cache when we de-serialize the object.
Serialized Fields

templatePath

java.lang.String templatePath
the path to templates on the file system

nocache

boolean nocache
indicates the browser should not cache the content

debug

boolean debug
debug mode

updateInterval

long updateInterval
the update interval for Template caching, in seconds

maximumAge

int maximumAge
the maximum age of templates before being expired from the cache


Package freemarker.ext.util

Class freemarker.ext.util.IdentityHashMap implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reconstitute the IdentityHashMap instance from a stream (i.e., deserialize it).

writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Save the state of the IdentityHashMap instance to a stream (i.e., serialize it).
Serial Data:
The capacity of the IdentityHashMap (the length of the bucket array) is emitted (int), followed by the size of the IdentityHashMap (the number of key-value mappings), followed by the key (Object) and value (Object) for each key-value mapping represented by the IdentityHashMap The key-value mappings are emitted in no particular order.
Serialized Fields

threshold

int threshold
The table is rehashed when its size exceeds this threshold. (The value of this field is (int)(capacity * loadFactor).)
 

loadFactor

float loadFactor
The load factor for the hashtable.
 


Package freemarker.template

Class freemarker.template.BinaryData implements Serializable

Serialized Fields

dataArray

byte[] dataArray
The binary data held by this object.
The binary data stored as a byte array

Class freemarker.template.CacheEvent implements Serializable

Serialized Fields

exception

java.lang.Exception exception
an Exception associated with this event.

elementName

java.lang.String elementName
the name of an element associated with this event.

lastModified

long lastModified
the modification date of the element, if applicable

Class freemarker.template.FastBoolean implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as a single boolean value.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as a single boolean value.
Serialization Overview
Serialize as a single boolean value, for compactness.
Serialized Fields
boolean booleanValue
booleanValue boolean the boolean value that this FastBoolean represents

Class freemarker.template.FastHash implements Serializable

Serialized Fields

hash

java.util.Map hash
The Map that this FastHash wraps.

Class freemarker.template.FastList implements Serializable

Serialized Fields

list

java.util.List list
The List that this FastList wraps.

Class freemarker.template.FastListRange implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Serialized form consists of only the from and to values. Make sure transient fields are repopulated when we deserialize this object.
Serialized Fields

fromValue

long fromValue
The beginning of the list range.

toValue

long toValue
The end of the list range, inclusive. Can be lower than the fromValue field, to indicate that the list should be stepped through backwards. This also implies that the list cannot be empty.

Class freemarker.template.FastNumber implements Serializable

Serialized Fields

numberValue

long numberValue
The value of this FastNumber.

Class freemarker.template.FastScalar implements Serializable

Serialized Fields

stringValue

java.lang.String stringValue
The value of this FastScalar.

Class freemarker.template.SimpleHash implements Serializable

Serialized Fields

hash

java.util.Map hash
The contents of this SimpleHash are stored in this Map object.
the Map that this SimpleHash wraps.

Class freemarker.template.SimpleList implements Serializable

Serialized Fields

list

java.util.List list
The contents of this SimpleList are stored in this List object.
The List that this SimpleList wraps.

Class freemarker.template.SimpleNumber implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as a single Long value. If null, assume the object is empty.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as a single Long value.
Serialization Overview
Serialized form is a single Long value, which may be null. This makes serialized form easy, and deals with the empty value conveniently.
Serialized Fields
Long numberValue
numberValue Long the Long value of this number, or null if the number is empty

Class freemarker.template.SimpleScalar implements Serializable

Serialization Methods

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object in a 1.7 compatible manner. This adds the extra useBoolean flag that 1.7 needs. When deserialized, the defaultReadObject method will do the right thing.
Serialization Overview
Serialized form matches the form used in FreeMarker 1.7. This is actually more verbose than required, but backward compatibility means we do it this way.
Serialized Fields
boolean booleanValue
booleanValue boolean the boolean value of this scalar

java.lang.String stringValue
stringValue String the String value of this scalar

boolean useBoolean
useBoolean boolean for backward compatibility, do we use the String or the boolean value?

Class freemarker.template.Template implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object a TemplateProcessor containing the compiled template, and an array of FunctionInstructions. These may be called from the template at runtime if any functions were defined in the template source. Check whether the function list is null.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object a TemplateProcessor containing the compiled template, and an arrays. The array contains the FunctionInstructions that may be called from the template.
Serialization Overview
Serialized form is a TemplateProcessor holding the parsed template tree, followed by an array of FunctionInstructions. The array contains functions to be evaluated at runtime if any functions are called. This is done primarily for type correctness, and avoids serializing a Map object.
Serialized Fields
TemplateProcessor compiledTemplate
compiledTemplate TemplateProcessor object holding the entire compiled template parse tree

FunctionInstruction[] functions
functions FunctionInstruction[] an array of value expressions associated with the names

Class freemarker.template.TemplateException implements Serializable

Serialized Fields

causeException

java.lang.Exception causeException
The underlying cause of this exception, if any.

Class freemarker.template.TemplateExceptionEvent implements Serializable

Serialized Fields

sourceName

java.lang.String sourceName
the name of the source object that caused this event.

severity

int severity
the severity of the error.

output

java.io.Writer output
a writer to write any error message to.

exception

java.lang.Exception exception
the exception containing details of the event.

Class freemarker.template.TemplateModelException implements Serializable

Class freemarker.template.UnparsedTemplate implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as a String.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as a String.
Serialization Overview
Serialized unparsed template as a String object. This means that for the 1.2 series of JVMs, the serialized unparsed template cannot be larger than 64kB.
Serialized Fields
java.lang.String textValue
textValue String the String value of this template


Package freemarker.template.compiler

Class freemarker.template.compiler.ParseException implements Serializable

Class freemarker.template.compiler.TemplateArrayList implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check the array for validity.
Serialized Fields

processors

TemplateProcessor[] processors
an array of template processors, to be processed in sequence


Package freemarker.template.expression

Class freemarker.template.expression.AbstractBinary implements Serializable

Serialized Fields

left

Expression left
The left-hand side of the expression to be evaluated.
an Expression object representing the left-hand side of the expression to be evaluated.

right

Expression right
The right-hand side of the expression to be evaluated.
an Expression object representing the right-hand side of the expression to be evaluated.

Class freemarker.template.expression.And implements Serializable

Class freemarker.template.expression.BooleanLiteral implements Serializable

Serialized Fields

booleanValue

boolean booleanValue
the boolean value represented by this boolean literal.

Class freemarker.template.expression.Constant implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, check for null, and recalculate the expression type.
Serialized Fields

constantValue

TemplateModel constantValue
the constant value to be returned

Class freemarker.template.expression.Divide implements Serializable

Class freemarker.template.expression.Dot implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the identifier has been deserialized to null.
Serialized Fields

identifier

Identifier identifier
The identifier following the dot

target

Variable target
The variable preceding the dot

Class freemarker.template.expression.DynamicKeyName implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the key name has been deserialized to null.
Serialized Fields

keyName

Expression keyName
the expression to be evaluated when determining the key

target

Variable target
The variable preceding the dynamic key name

Class freemarker.template.expression.Equals implements Serializable

Class freemarker.template.expression.GreaterThan implements Serializable

Class freemarker.template.expression.GreaterThanOrEquals implements Serializable

Class freemarker.template.expression.HashLiteral implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as two arrays of Expressions. The first array contains the expressions that will be evaluated as names of the hash. The seconds array contains the expressions that will be evaluated as values of the hash. Test whether the arrays are the same size, and whether they are null.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as two arrays of Expressions. The first array contains the expressions that will be evaluated as names of the hash. The seconds array contains the expressions that will be evaluated as values of the hash.
Serialization Overview
Serialized form is two arrays, both the same size. One contains expressions to be evaluated as names, the other contains expressions to be evaluated as values. This is done primarily for type correctness, and avoids serializing a Map object.
Serialized Fields
Expression[] names
names Expression[] an array of name expressions

Expression[] values
values Expression[] an array of value expressions associated with the names

Class freemarker.template.expression.Identifier implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the name has been deserialized to null.
Serialized Fields

name

java.lang.String name
The name for this identifier.
the name of the identifier

Class freemarker.template.expression.LessThan implements Serializable

Class freemarker.template.expression.LessThanOrEquals implements Serializable

Class freemarker.template.expression.ListLiteral implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as an array of Expressions, then check whether the list has been deserialized to null.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as an array of Expressions.
Serialization Overview
Serialized form is an array of zero or more Expression objects. This is primarily for type correctness and avoids having to serialize a List object.
Serialized Fields
Expression[] values
values Expression[] an array of Expression objects that will be evaluated as template models at run time

Class freemarker.template.expression.ListRange implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether either fromRange or toRange has been deserialized to null.
Serialized Fields

fromRange

Expression fromRange
An expression that evaluates to the start of the list range.

toRange

Expression toRange
An expression that evaluates to the end of the list range.

Class freemarker.template.expression.MethodCall implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the argument list is null.
Serialized Fields

arguments

ListLiteral arguments
a list of expressions to be passed to the method call as arguments, either as template models or as strings.

target

Variable target
The variable for which the method will be called.

Class freemarker.template.expression.Minus implements Serializable

Class freemarker.template.expression.Modulo implements Serializable

Class freemarker.template.expression.Multiply implements Serializable

Class freemarker.template.expression.Not implements Serializable

Serialized Fields

target

Expression target
the expression to be negated.

Class freemarker.template.expression.NotEquals implements Serializable

Class freemarker.template.expression.NumberLiteral implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as a single long value.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as a single long value.
Serialization Overview
Serialized form is a single long value. Since a number literal cannot be empty, we don't attempt a special case for it.
Serialized Fields
long numberValue
numberValue long the long value that this NumberLiteral represents

Class freemarker.template.expression.Or implements Serializable

Class freemarker.template.expression.Plus implements Serializable

Class freemarker.template.expression.StringLiteral implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as a single String object.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as a single String object.
Serialization Overview
Serialized form is a single String object. This is primarily for compactness and avoids having to serialize a TemplateModel object.
Serialized Fields
java.lang.String stringValue
stringValue String the string value that this StringLiteral represents


Package freemarker.template.instruction

Class freemarker.template.instruction.AssignInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether both sides of the statement are non-null.
Serialized Fields

variable

Identifier variable
the variable to which the value will be assigned

value

Expression value
an expression which, when evaluated, will be assigned to the variable

Class freemarker.template.instruction.CallInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the variable expression is null.
Serialized Fields

methodCall

MethodCall methodCall
The function or method name and arguments to be called

Class freemarker.template.instruction.CaseInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the case expression is null.
Serialized Fields

expression

Expression expression
the expression to be matched by the switch expression

hasBreak

boolean hasBreak
does the case have a break at the end

Class freemarker.template.instruction.CommentInstruction implements Serializable

Class freemarker.template.instruction.DefaultCaseInstruction implements Serializable

Serialized Fields

body

TemplateProcessor body
The template body to process if the default case is reached.
the template body to be processed if the case matches

Class freemarker.template.instruction.ElseInstruction implements Serializable

Serialized Fields

body

TemplateProcessor body
The template body to process if the else clause is reached.
the template body to process if the clause evaluates to true

Class freemarker.template.instruction.EndInstruction implements Serializable

Serialized Fields

endType

int endType
the type of end instruction encountered

Class freemarker.template.instruction.FunctionInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as an Identifier containing the function name, and an array of Identifiers containing the argument list. Check whether either the name or the argument list is null.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as an Identifier containing the function name, and an array of Identifiers containing the argument list.
Serialization Overview
Serialized form is an Identifier containing the function name, and an array of zero or more Identifiers containing the argument list. This is primarily for type correctness and avoids having to serialize a List object.
Serialized Fields
Identifier[] arguments
arguments Identifier[] a list of arguments to be supplied to the function

Identifier name
name Identifier the name of the function

Class freemarker.template.instruction.FunctionModel implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the function instruction is null.
Serialized Fields

function

FunctionInstruction function
the function instruction to be evaluated when this model is called

Class freemarker.template.instruction.GenericStartInstruction implements Serializable

Serialized Fields

body

TemplateProcessor body
The template body to be processed
the template processor to be called for this instruction

Class freemarker.template.instruction.IfElseInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as an array of IfExpression objects, followed by an optional ElseExpression.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as an array of IfExpression objects, followed by an optional ElseExpression.
Serialization Overview
Serialized text block as an array of one or more if instructions, followed by an optional else instruction.
Serialized Fields
ElseInstruction elseInstruction
elseInstruction ElseInstruction a single, optional else instruction

IfInstruction[] ifInstructions
ifInstructions IfInstruction[] an array of all if and elseif instructions

Class freemarker.template.instruction.IfInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the if condition is null.
Serialized Fields

condition

Expression condition
the condition to be evaluated

Class freemarker.template.instruction.IncludeInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the parent template or the name are null.
Serialized Fields

template

TemplateProcessor template
the template to which this include instruction belongs

name

Expression name
an expression that determines name of the template to be included

type

Expression type
an expression that determines the type of template to be included

Class freemarker.template.instruction.ListInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
When deserializing this object, read the object normally, test whether the list expression or index variable is null, then recreate the transient iterator field.
Serialized Fields

listExpression

Expression listExpression
the expression that evaluates to a template list model

indexVariable

Identifier indexVariable
the variable used to index over the list

Class freemarker.template.instruction.NOOPInstruction implements Serializable

Class freemarker.template.instruction.NoParseInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as a String.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as a String.
Serialization Overview
Serialized noparse block as a String object. This means that for the 1.2 series of JVMs, the serialized noparse block cannot be larger than 64kB.
Serialized Fields
java.lang.String textValue
textValue String the String value of this text

Class freemarker.template.instruction.SwitchInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as an Expression, an array of case objects, and an optional default object.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as an Expression, an array of case objects, and an optional default object.
Serialization Overview
Serialized form is a switch expression, an array of zero or more case instructions, and an optional default instruction.
Serialized Fields
CaseInstruction[] caseInstructions
caseInstructions CaseInstruction[] an array of case instructions to test against the switch expression

DefaultCaseInstruction defaultInstruction
defaultInstruction DefaultCaseInstruction an optional default instruction

Expression switchExpression
switchExpression Expression the switch expression to test case instructions against

Class freemarker.template.instruction.TextBlockInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object as a String.

writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
For serialization, write this object as a String.
Serialization Overview
Serialized text block as a String object. This means that for the 1.2 series of JVMs, the serialized text block cannot be larger than 64kB.
Serialized Fields
java.lang.String textValue
textValue String the String value of this text

Class freemarker.template.instruction.TransformInstruction implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
For serialization, read this object normally, then check whether the transform variable is null.
Serialized Fields

transformVariable

Variable transformVariable
the name of the variable containing the transformation

Class freemarker.template.instruction.VariableInstruction implements Serializable

Serialized Fields

expression

Expression expression
the expression to be evaluated and written to the output stream


Package freemarker.testcase

Class freemarker.testcase.TestCaseException implements Serializable