Skip to content

Commit

Permalink
Add Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Oct 12, 2022
1 parent 3109fa1 commit 8bc0965
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/spoon/reflect/code/CtTry.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,14 @@ public interface CtTry extends CtStatement, TemplateParameter<Void>, CtBodyHolde

/**
* Adds a catch block at the specified position in the <code>try</code> statement.
*
* @param <T> the type of the try statement
* @param position the position at which the <code>catcher</code> is to be inserted
* @param catcher the catch statement to be inserted
* @return this try statement
*/
@PropertySetter(role = CATCH)
<T extends CtTry> T addCatcherAt(int index, CtCatch catcher);
<T extends CtTry> T addCatcherAt(int position, CtCatch catcher);

/**
* Removes a catch block.
Expand Down

0 comments on commit 8bc0965

Please sign in to comment.