|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.expression.EmptyLiteral
public final class EmptyLiteral
Represents an empty literal in a FM-Classic template. Typically used to support the "#empty" identifier.
Field Summary | |
---|---|
static EmptyLiteral |
EMPTY
The canonical instance of this class. |
Method Summary | |
---|---|
TemplateModel |
getAsTemplateModel(TemplateWriteableHashModel modelRoot)
Retrieve the value of this EmptyLiteral as a
TemplateModel . |
EmptyLiteral |
getInstance()
Factory method for retrieving instances of a EmptyLiteral . |
java.util.Set<ExpressionUtils.ExpressionType> |
getType()
Determine the type of result that can be calculated by this expression. |
boolean |
isComplete()
Is the Expression complete? |
boolean |
isConstant()
Determine whether result calculated by this expression is a constant value. |
Expression |
resolveExpression()
Resolves the current expression, possibly into a different expression object. |
java.lang.String |
toString()
Retrieve the value of this object as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EmptyLiteral EMPTY
Method Detail |
---|
public TemplateModel getAsTemplateModel(TemplateWriteableHashModel modelRoot) throws TemplateException
EmptyLiteral
as a
TemplateModel
.
getAsTemplateModel
in interface Expression
modelRoot
- the template model that will be evaluated by the expression
TemplateException
- the expression could not be evaluated for some reasonpublic boolean isComplete()
Expression
complete?
isComplete
in interface Expression
true
if this Expression
is complete,
otherwise false
public java.util.Set<ExpressionUtils.ExpressionType> getType()
ExpressionUtils
class.
getType
in interface Expression
public boolean isConstant()
isConstant
in interface Expression
public EmptyLiteral getInstance()
EmptyLiteral
.
public java.lang.String toString()
toString
in class java.lang.Object
String
representation of this expressionpublic Expression resolveExpression() throws TemplateException
readResolve
method. Situations where this may be used are:
resolveExpression
in interface Expression
TemplateException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |