|
||||||||||
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
koala.dynamicjava.tree.AndExpression
public class AndExpression
This class represents the and expression nodes of the syntax tree
Constructor Summary | |
---|---|
AndExpression(Expression lexp,
Expression rexp)
Initializes the expression |
|
AndExpression(Expression lexp,
Expression rexp,
SourceInfo si)
Initializes the expression |
Method Summary | ||
---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
String |
toString()
Implementation of toString for use in unit testing |
Methods inherited from class koala.dynamicjava.tree.BinaryExpression |
---|
getLeftExpression, getRightExpression, setLeftExpression, setRightExpression |
Methods inherited from class koala.dynamicjava.tree.Node |
---|
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 |
---|
public AndExpression(Expression lexp, Expression rexp)
lexp
- the LHS expressionrexp
- the RHS expression
IllegalArgumentException
- if lexp is null or rexp is nullpublic AndExpression(Expression lexp, Expression rexp, SourceInfo si)
lexp
- the LHS expressionrexp
- the RHS expression
IllegalArgumentException
- if lexp is null or rexp is nullMethod Detail |
---|
public <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor
in class Node
visitor
- the visitor to acceptpublic String toString()
toString
in class BinaryExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |