Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java @ 22049:6dd4ab4d76d3
ecj lints
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 30 Jul 2015 18:13:42 +0200 |
parents | e7c2d36daf72 |
children | 78c3d3d8d86e |
comparison
equal
deleted
inserted
replaced
22048:8519aaa39caf | 22049:6dd4ab4d76d3 |
---|---|
171 protected abstract DebugSupportProvider getDebugSupport(); | 171 protected abstract DebugSupportProvider getDebugSupport(); |
172 | 172 |
173 /** | 173 /** |
174 * Finds the currently executing context for current thread. | 174 * Finds the currently executing context for current thread. |
175 * | 175 * |
176 * @param <Language> type of language making the query | 176 * @param <Lang> type of language making the query |
177 * @param language the language class | 177 * @param language the language class |
178 * @return the context associated with current execution | 178 * @return the context associated with current execution |
179 * @throws IllegalStateException if no context is associated with the execution | 179 * @throws IllegalStateException if no context is associated with the execution |
180 */ | 180 */ |
181 protected static <Language extends TruffleLanguage> Language findContext(Class<Language> language) { | 181 protected static <Lang extends TruffleLanguage> Lang findContext(Class<Lang> language) { |
182 return language.cast(API.findLanguage(null, language)); | 182 return language.cast(API.findLanguage(null, language)); |
183 } | 183 } |
184 | 184 |
185 /** | 185 /** |
186 * Represents execution environment of the {@link TruffleLanguage}. Each active | 186 * Represents execution environment of the {@link TruffleLanguage}. Each active |