Bug 76863 - [1.5][model] IField should offer a method isEnumConstant
Summary: [1.5][model] IField should offer a method isEnumConstant
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 16:50 EDT by Dirk Baeumer CLA
Modified: 2005-03-31 06:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2004-10-22 16:50:12 EDT
Like IType has methods isEnum, isAnnotation, ... IField should have a method
isEnumConstant.
Comment 1 Philipe Mulet CLA 2004-10-22 19:00:23 EDT
Would be a helper for: Flags.isEnum(field.getFlags())
Comment 2 Jerome Lanneluc CLA 2005-03-22 11:23:36 EST
Added IField#isEnumConstant().
Added tests CompilationUnitTests#testIsEnumConstant1() and testIsEnumConstant2()
Comment 3 David Audel CLA 2005-03-31 06:03:40 EST
Verified in I20050330-0500