Class TryBlockExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.statements.TryBlockExtension
-
public class TryBlockExtension extends Object
-
-
Constructor Summary
Constructors Constructor Description TryBlockExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EList<CatchBlock>
getCatcheBlocks(TryBlock block)
Deprecated.Use getCatchBlocks().static EList<Statement>
getStatements(TryBlock block)
Deprecated.Use getBlock().getStatements().
-
-
-
Method Detail
-
getCatcheBlocks
@Deprecated public static EList<CatchBlock> getCatcheBlocks(TryBlock block)
Deprecated.Use getCatchBlocks().Returns all CatchBlocks. This is a legacy method to provide a stable and backwards-compatible API.- Parameters:
block
- the TryBlock for which the CatchBlocks are returned.- Returns:
- the list of all CatchBlocks.
-
getStatements
@Deprecated public static EList<Statement> getStatements(TryBlock block)
Deprecated.Use getBlock().getStatements().Returns a list with all statements within the block of a try statement. This is a legacy method to provide a stable and backwards-compatible API.- Parameters:
block
- the try statement.- Returns:
- the list.
-
-