|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.template.expression.Not
Performs a logical "not" operation on a given template model.
Fields inherited from interface freemarker.template.expression.Unary |
POSTFIX, PREFIX |
Constructor Summary | |
Not()
Default constructor. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Determines whether this object is equal to the given object. |
int |
getAssociationType()
Retrieve the operator association for this operator. |
TemplateModel |
getAsTemplateModel(TemplateModelRoot modelRoot)
Returns a binary "not" of the expression previously set. |
int |
getOperatorClass()
Return the type of operator this is to the caller. |
int |
getType()
Determine the type of result that can be calculated by this expression. |
int |
hashCode()
Returns the hash code for this operator. |
boolean |
isComplete()
Is the target specified? |
void |
setTarget(Expression target)
Sets the target of this Not operator. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Not()
Method Detail |
public TemplateModel getAsTemplateModel(TemplateModelRoot modelRoot) throws TemplateException
getAsTemplateModel
in interface Expression
modelRoot
- the template model that will be evaluated by the expressionFastBoolean
of the "not" expressionTemplateException
- the expression could not be evaluated for some reasonpublic boolean isComplete()
isComplete
in interface Expression
true
if the target is specified, otherwise false
public int getType()
ExpressionUtils
class.getType
in interface Expression
public int getAssociationType()
getAssociationType
in interface Unary
PREFIX
.public void setTarget(Expression target)
Not
operator.setTarget
in interface Unary
target
- the target of this operatorNullPointerException
- the expression is nullpublic int getOperatorClass()
getOperatorClass
in interface Operator
public java.lang.String toString()
toString
in class java.lang.Object
String
representation of this expressionpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to be compared withtrue
if the 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 |