Serialized Form
Package freemarker.ext.misc |
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.
shelfLife
long shelfLife
- The shelf life in milliseconds of this
ExtendedList
.
isPermanent
boolean isPermanent
- Whether this
ExtendedList
has an indefinite
shelf life.
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 |
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.
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 |
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.
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 |
dataArray
byte[] dataArray
- The binary data held by this object.
- The binary data stored as a byte array
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
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.
- Serialize as a single boolean value, for compactness.
boolean booleanValue
- booleanValue boolean the boolean value that this
FastBoolean
represents
hash
java.util.Map hash
- The
Map
that this FastHash
wraps.
list
java.util.List list
- The
List
that this FastList
wraps.
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.
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.
numberValue
long numberValue
- The value of this
FastNumber
.
stringValue
java.lang.String stringValue
- The value of this
FastScalar
.
hash
java.util.Map hash
- The contents of this
SimpleHash
are stored in this
Map
object. - the
Map
that this SimpleHash
wraps.
list
java.util.List list
- The contents of this
SimpleList
are stored in this
List
object. - The
List
that this SimpleList
wraps.
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.
- Serialized form is a single
Long
value, which may be
null. This makes serialized form easy, and deals with the empty
value conveniently.
Long numberValue
- numberValue Long the
Long
value of this number,
or null
if the number is empty
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.
- 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.
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?
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.
- 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.
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
causeException
java.lang.Exception causeException
- The underlying cause of this exception, if any.
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.
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.
- 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.
java.lang.String textValue
- textValue String the
String
value of this
template
Package freemarker.template.compiler |
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.
processors
TemplateProcessor[] processors
- an array of template processors, to be processed in sequence
Package freemarker.template.expression |
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.
booleanValue
boolean booleanValue
- the boolean value represented by this boolean literal.
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.
constantValue
TemplateModel constantValue
- the constant value to be returned
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.
identifier
Identifier identifier
- The identifier following the dot
target
Variable target
- The variable preceding the dot
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.
keyName
Expression keyName
- the expression to be evaluated when determining the key
target
Variable target
- The variable preceding the dynamic key name
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.
- 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.
Expression[] names
- names Expression[] an array of name expressions
Expression[] values
- values Expression[] an array of value expressions
associated with the names
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.
name
java.lang.String name
- The name for this identifier.
- the name of the identifier
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.
- 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.
Expression[] values
- values Expression[] an array of Expression objects that
will be evaluated as template models at run time
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.
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.
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.
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.
target
Expression target
- the expression to be negated.
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.
- Serialized form is a single long value. Since a number literal
cannot be empty, we don't attempt a special case for it.
long numberValue
- numberValue long the long value that this
NumberLiteral
represents
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.
- Serialized form is a single String object. This is primarily for
compactness and avoids having to serialize a TemplateModel object.
java.lang.String stringValue
- stringValue String the string value that this
StringLiteral
represents
Package freemarker.template.instruction |
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.
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
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.
methodCall
MethodCall methodCall
- The function or method name and arguments to be called
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.
expression
Expression expression
- the expression to be matched by the switch expression
hasBreak
boolean hasBreak
- does the case have a break at the end
body
TemplateProcessor body
- The template body to process if the default case is reached.
- the template body to be processed if the case matches
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
endType
int endType
- the type of end instruction encountered
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.
- 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.
Identifier[] arguments
- arguments Identifier[] a list of arguments to be supplied
to the function
Identifier name
- name Identifier the name of the function
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.
function
FunctionInstruction function
- the function instruction to be evaluated when this model
is called
body
TemplateProcessor body
- The template body to be processed
- the template processor to be called for this instruction
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.
- Serialized text block as an array of one or more if instructions,
followed by an optional else instruction.
ElseInstruction elseInstruction
- elseInstruction ElseInstruction a single, optional else instruction
IfInstruction[] ifInstructions
- ifInstructions IfInstruction[] an array of all if and elseif instructions
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.
condition
Expression condition
- the condition to be evaluated
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.
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
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.
listExpression
Expression listExpression
- the expression that evaluates to a template list model
indexVariable
Identifier indexVariable
- the variable used to index over the list
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.
- 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.
java.lang.String textValue
- textValue String the
String
value of this text
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.
- Serialized form is a switch expression, an array of zero or more
case instructions, and an optional default instruction.
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
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.
- 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.
java.lang.String textValue
- textValue String the
String
value of this text
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.
transformVariable
Variable transformVariable
- the name of the variable containing the transformation
expression
Expression expression
- the expression to be evaluated and written to the output stream
Package freemarker.testcase |