|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.template.expression.AbstractBinary | +--freemarker.template.expression.NotEquals
Performs an inequality test on two template models.
Fields inherited from class freemarker.template.expression.AbstractBinary |
left, right |
Constructor Summary | |
NotEquals()
Default constructor. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Determines whether this object is equal to the given object. |
TemplateModel |
getAsTemplateModel(TemplateModelRoot modelRoot)
Returns the inequality of two expressions 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. |
void |
setLeft(Expression left)
Sets the left-hand side of the expression. |
void |
setRight(Expression right)
Sets the right-hand side of the expression. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class freemarker.template.expression.AbstractBinary |
isComplete |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NotEquals()
Method Detail |
public void setLeft(Expression left)
setLeft
in class AbstractBinary
left
- the left-hand side of the expressionNullPointerException
- the argument was nulljava.lang.IllegalArgumentException
- the argument was neither a String
nor a numberpublic void setRight(Expression right)
setRight
in class AbstractBinary
right
- the right-hand side of the expressionNullPointerException
- the argument was nulljava.lang.IllegalArgumentException
- the argument was neither a String
nor a numberpublic TemplateModel getAsTemplateModel(TemplateModelRoot modelRoot) throws TemplateException
modelRoot
- the template model that will be evaluated by the expressionFastBoolean
of the "not-equals" expressionTemplateException
- the expression could not be evaluated for some reasonpublic int getType()
ExpressionUtils
class.public int getOperatorClass()
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 |