|
||||||||||
| 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.Statement
koala.dynamicjava.tree.AssertStatement
public class AssertStatement
This class represents the assert statement nodes of the syntax tree
| Constructor Summary | |
|---|---|
AssertStatement(Expression cond,
Expression falseString)
Creates a new assert statement |
|
AssertStatement(Expression cond,
Expression falseString,
SourceInfo si)
Creates a new assert statement |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
Expression |
getCondition()
Gets the condition to assert |
|
Expression |
getFailString()
Gets the failed string to display when assertion fails |
|
void |
setCondition(Expression e)
Sets the condition to evaluate |
|
void |
setFailString(Expression e)
Sets the string to display on failure |
|
String |
toString()
Implementation of toString for use in unit testing |
|
| 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 AssertStatement(Expression cond,
Expression falseString)
IllegalArgumentException - if cond is null or falseString is null
public AssertStatement(Expression cond,
Expression falseString,
SourceInfo si)
IllegalArgumentException - if cond is null or falseString is null| Method Detail |
|---|
public Expression getCondition()
public Expression getFailString()
public void setCondition(Expression e)
IllegalArgumentException - if e is nullpublic void setFailString(Expression e)
public <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||