|
||||||||||
| 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.ExpressionStatement
public class ExpressionStatement
This class represents the assert statement nodes of the syntax tree
| Field Summary |
|---|
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
ExpressionStatement(Expression exp,
boolean hasSemi)
Creates a new expression statement |
|
ExpressionStatement(Expression exp,
boolean hasSemi,
SourceInfo si)
Creates a new assert statement |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
Expression |
getExpression()
Returns the expression |
|
boolean |
getHasSemicolon()
|
|
void |
setExpression(Expression e)
Sets the expression |
|
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 ExpressionStatement(Expression exp,
boolean hasSemi)
exp - The expressionhasSemi - Whether the expression is followed by a semicolon
IllegalArgumentException - if exp is null
public ExpressionStatement(Expression exp,
boolean hasSemi,
SourceInfo si)
exp - The expressionhasSemi - Whether the expression is followed by a semicolon
IllegalArgumentException - if exp is null| Method Detail |
|---|
public Expression getExpression()
ExpressionContainer
getExpression in interface ExpressionContainerpublic boolean getHasSemicolon()
public void setExpression(Expression e)
ExpressionContainer
setExpression in interface ExpressionContainerpublic <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 | |||||||||