|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.expression.AbstractBinary
public abstract class 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? |
Expression |
resolveExpression()
Resolves the current expression, possibly into a different expression object. |
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 |
---|
getPrecedence |
Methods inherited from interface freemarker.template.expression.Expression |
---|
getAsTemplateModel, getType, isConstant |
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 expression
java.lang.NullPointerException
- the argument was nullpublic void setRight(Expression right)
setRight
in interface Binary
right
- the right-hand side of the expression
java.lang.NullPointerException
- 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
public Expression resolveExpression() throws TemplateException
resolveExpression
in interface Expression
TemplateException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |