|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.template.expression.StringLiteral
Represents a String
literal in a FM-Classic template.
Constructor Summary | |
StringLiteral(java.lang.String value)
Constructor that takes the String value to be generated at run time. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Override the Object.equals method. |
TemplateModel |
getAsTemplateModel(TemplateModelRoot modelRoot)
Retrieve the value of this StringLiteral as a
TemplateModel . |
int |
getType()
Determine the type of result that can be calculated by this expression. |
int |
hashCode()
Retrieve the hash value for this object. |
boolean |
isComplete()
Does the StringLiteral contain a value? |
java.lang.String |
toString()
Return the String value of this string literal. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringLiteral(java.lang.String value)
String
value to be generated at run time.value
- the String
value to be generatedNullPointerException
- the value is nullMethod Detail |
public TemplateModel getAsTemplateModel(TemplateModelRoot modelRoot)
StringLiteral
as a
TemplateModel
.getAsTemplateModel
in interface Expression
modelRoot
- the template model that will be evaluated by the expressionFastScalar
containing the literal String
public boolean isComplete()
StringLiteral
contain a value?isComplete
in interface Expression
true
if there is a value, otherwise false
public int getType()
ExpressionUtils
class.getType
in interface Expression
public java.lang.String toString()
toString
in class java.lang.Object
String
objectpublic boolean equals(java.lang.Object o)
Object.equals
method.equals
in class java.lang.Object
o
- the object to compare againsttrue
if the two objects are equal, otherwise
false
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |