|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.template.expression.BooleanLiteral
Represents a boolean literal in a FM-Classic template.
Field Summary | |
static BooleanLiteral |
FALSE
The false instance of this class. |
static BooleanLiteral |
TRUE
The true instance of this class. |
Method Summary | |
TemplateModel |
getAsTemplateModel(TemplateModelRoot modelRoot)
Retrieve the value of this BooleanLiteral as a
TemplateModel . |
static BooleanLiteral |
getInstance(boolean isTrue)
Factory method for retrieving instances of a BooleanLiteral . |
int |
getType()
Determine the type of result that can be calculated by this expression. |
boolean |
isComplete()
Does the BooleanLiteral have a value? |
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 BooleanLiteral TRUE
true
instance of this class.public static final BooleanLiteral FALSE
false
instance of this class.Method Detail |
public TemplateModel getAsTemplateModel(TemplateModelRoot modelRoot) throws TemplateException
BooleanLiteral
as a
TemplateModel
.getAsTemplateModel
in interface Expression
modelRoot
- the template model that will be evaluated by the expressionTemplateException
- the expression could not be evaluated for some reasonpublic boolean isComplete()
BooleanLiteral
have a value?isComplete
in interface Expression
true
if there is a value, otherwise false
public int getType()
ExpressionUtils
class.getType
in interface Expression
public static BooleanLiteral getInstance(boolean isTrue)
BooleanLiteral
.isTrue
- true
if we want a True instance,
otherwise false
to retrieve a False instanceisTrue
is set, otherwise a False instancepublic java.lang.String toString()
toString
in class java.lang.Object
String
representation of this expression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |