|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkoala.dynamicjava.tree.Node
koala.dynamicjava.tree.Expression
koala.dynamicjava.tree.BinaryExpression
public abstract class BinaryExpression
This class represents the binary expression nodes of the syntax tree
| Constructor Summary | |
|---|---|
protected |
BinaryExpression(Expression lexp,
Expression rexp,
SourceInfo si)
Initializes the expression |
| Method Summary | |
|---|---|
Expression |
getLeftExpression()
Returns the left hand side expression |
Expression |
getRightExpression()
Returns the right hand side expression |
void |
setLeftExpression(Expression exp)
Sets the left hand side expression |
void |
setRightExpression(Expression exp)
Sets the right hand side expression |
String |
toString()
Implementation of toString for use in unit testing |
| Methods inherited from class koala.dynamicjava.tree.Node |
|---|
acceptVisitor, archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected BinaryExpression(Expression lexp,
Expression rexp,
SourceInfo si)
lexp - the LHS expressionrexp - the RHS expression
IllegalArgumentException - if lexp is null or rexp is null| Method Detail |
|---|
public Expression getLeftExpression()
public void setLeftExpression(Expression exp)
IllegalArgumentException - if exp is nullpublic Expression getRightExpression()
public void setRightExpression(Expression exp)
IllegalArgumentException - if exp is nullpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||