Type of Class

Stephen Colebourne scolebourne at joda.org
Fri Feb 21 10:27:19 UTC 2014


On 21 February 2014 08:14, David Holmes <david.holmes at oracle.com> wrote:
>> Would it be reasonable to add the following methods:
>> - isNestedClass()
> This would be !isTopLevelClass() but otherwise
> isAnonymousClass() || isLocalClass() || isMemberClass()
>> - isInnerClass()
> isAnonymousClass() || isLocalClass() || (isMemberClass() && !static)
>> - isTopLevelClass()
> ! (isAnonymousClass() || isLocalClass() || isMemberClass())
> and for completeness:
> - isStaticNestedClass() == isMemberClass() && static

I think the next step is a JIRA unless anyone objects.
Stephen



More information about the core-libs-dev mailing list