|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.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 ExpressionmodelRoot - 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 Expressiontrue if this Expression is complete,
otherwise falsepublic java.util.Set<ExpressionUtils.ExpressionType> getType()
ExpressionUtils class.
getType in interface Expressionpublic boolean isConstant()
isConstant in interface Expressionpublic EmptyLiteral getInstance()
EmptyLiteral.
public java.lang.String toString()
toString in class java.lang.ObjectString representation of this expression
public Expression resolveExpression()
throws TemplateException
readResolve method. Situations where this may be used are:
resolveExpression in interface ExpressionTemplateException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||