|
||||||||||
| 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.TryStatement
public class TryStatement
This class represents the try statement nodes of the syntax tree
| Constructor Summary | |
|---|---|
TryStatement(Node tryB,
java.util.List<CatchStatement> catchL,
Node fin,
SourceInfo si)
Creates a new while statement |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
java.util.List<CatchStatement> |
getCatchStatements()
Gets the catch statements |
|
Node |
getFinallyBlock()
Gets the finally block |
|
Node |
getTryBlock()
Gets the try block |
|
java.lang.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 TryStatement(Node tryB,
java.util.List<CatchStatement> catchL,
Node fin,
SourceInfo si)
tryB - the try blockcatchL - the catch listfin - the finally block| Method Detail |
|---|
public Node getTryBlock()
public java.util.List<CatchStatement> getCatchStatements()
public Node getFinallyBlock()
public <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||