Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] org.eclipse.jdt.core.dom.TryStatement

> Question: How do I find the text offset of the "finally" keyword in a 
try/finally statement?

Sounds like you want to use 
org.eclipse.jdt.core.ToolFactory#createScanner(...).

The granularity of the AST nodes ends at the grammar level. If you need to 
dive deeper, you have to set up an IScanner and iterate over tokens.

HTH,
Markus



Back to the top