|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.template.expression.AbstractBinary
Abstract class that implements most of the surrounding machinery needed for binary expressions. This turns out to be identical for all binary operators, so is consolidated into this one abstract class.
Field Summary | |
protected Expression |
left
The left-hand side of the expression to be evaluated. |
protected Expression |
right
The right-hand side of the expression to be evaluated. |
Constructor Summary | |
AbstractBinary()
Default constructor. |
Method Summary | |
boolean |
isComplete()
Is the Expression complete? |
void |
setLeft(Expression left)
Sets the left-hand side of the expression. |
void |
setRight(Expression right)
Sets the right-hand side of the expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface freemarker.template.expression.Operator |
getOperatorClass |
Methods inherited from interface freemarker.template.expression.Expression |
getAsTemplateModel, getType |
Field Detail |
protected Expression left
protected Expression right
Constructor Detail |
public AbstractBinary()
Method Detail |
public void setLeft(Expression left)
setLeft
in interface Binary
left
- the left-hand side of the expressionNullPointerException
- the argument was nullpublic void setRight(Expression right)
setRight
in interface Binary
right
- the right-hand side of the expressionNullPointerException
- the argument was nullpublic boolean isComplete()
Expression
complete?isComplete
in interface Expression
true
if both left and right sides of the expression
are specified, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |