freemarker.template.utility

Class Constants


public class Constants
extends java.lang.Object

Frequently used constant TemplateModel values.

These constants should be stored in the TemplateModel sub-interfaces, but for bacward compatibility they are stored here instead. Starting from FreeMarker 2.4 they should be copyed (not moved!) into the TemplateModel sub-interfaces, and this class should be marked as deprecated.

Version:
$Id: Constants.java,v 1.2 2004/11/28 12:58:34 ddekany Exp $

Field Summary

static TemplateCollectionModel
EMPTY_COLLECTION
static TemplateHashModelEx
EMPTY_HASH
static TemplateModelIterator
EMPTY_ITERATOR
static TemplateSequenceModel
EMPTY_SEQUENCE
static TemplateScalarModel
EMPTY_STRING
static TemplateBooleanModel
FALSE
static TemplateNumberModel
MINUS_ONE
static TemplateNumberModel
ONE
static TemplateBooleanModel
TRUE
static TemplateNumberModel
ZERO

Field Details

EMPTY_COLLECTION

public static final TemplateCollectionModel EMPTY_COLLECTION

EMPTY_HASH

public static final TemplateHashModelEx EMPTY_HASH

EMPTY_ITERATOR

public static final TemplateModelIterator EMPTY_ITERATOR

EMPTY_SEQUENCE

public static final TemplateSequenceModel EMPTY_SEQUENCE

EMPTY_STRING

public static final TemplateScalarModel EMPTY_STRING

FALSE

public static final TemplateBooleanModel FALSE

MINUS_ONE

public static final TemplateNumberModel MINUS_ONE

ONE

public static final TemplateNumberModel ONE

TRUE

public static final TemplateBooleanModel TRUE

ZERO

public static final TemplateNumberModel ZERO