[
https://issues.jboss.org/browse/ROASTER-76?page=com.atlassian.jira.plugin...
]
Shoji Kuzukami commented on ROASTER-76:
---------------------------------------
Another option for the local class specification hit me. Is it a relatively balanced
desgin that the 'JavaType#isLocalClass()' is add in the 'JavaType'
interface? It's a minimum refactor. The short code of jdt library below can detects
the local class decleartion.
-------
public static boolean isLocalClass( final BodyDeclaration dec){
if (dec instanceof TypeDeclaration)
{
TypeDeclaration td = (TypeDeclaration) dec;
return td.isLocalTypeDeclaration();
}
return false;
}
------
Which one encloses a local class.
---------------------------------
Key: ROASTER-76
URL:
https://issues.jboss.org/browse/ROASTER-76
Project: Roaster
Issue Type: Quality Risk
Components: API, JDT
Affects Versions: 2.14.0.Final
Reporter: Shoji Kuzukami
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)