koala.dynamicjava.tree
Class CatchStatement

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.Statement
          extended by koala.dynamicjava.tree.CatchStatement
All Implemented Interfaces:
SourceInfo.Wrapper

public class CatchStatement
extends Statement

To store the informations about the catch statements

Version:
1.0 - 1999/07/04
Author:
Stephane Hillion

Constructor Summary
CatchStatement(FormalParameter fp, Node blk, SourceInfo si)
          Creates a new catch statement
 
Method Summary
<T> T
acceptVisitor(Visitor<T> visitor)
          Allows a visitor to traverse the tree
 Node getBlock()
          Returns the block
 FormalParameter getException()
          Returns the catched exception descriptor
 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

CatchStatement

public CatchStatement(FormalParameter fp,
                      Node blk,
                      SourceInfo si)
Creates a new catch statement

Parameters:
fp - the catched exception
blk - the block
Method Detail

getException

public FormalParameter getException()
Returns the catched exception descriptor


getBlock

public Node getBlock()
Returns the block


acceptVisitor

public <T> T acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree

Specified by:
acceptVisitor in class Node
Parameters:
visitor - the visitor to accept

toString

public String toString()
Implementation of toString for use in unit testing

Overrides:
toString in class Object