Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

getter for enum constants in JDefinedClass #5

Open
glassfishrobot opened this issue Jul 12, 2011 · 2 comments
Open

getter for enum constants in JDefinedClass #5

glassfishrobot opened this issue Jul 12, 2011 · 2 comments

Comments

@glassfishrobot
Copy link
Contributor

When using a visitor pattern to generate classes (enums), it would be helpful to get the map of enum constants
from JDefinedClass defined so far.

I would much appreciate the introduction of a method like:

public Map<String, JEnumConstant> getEnumConstantsByName()

{ return Collections.unmodifiableMap(enumConstantsByName); }

@glassfishrobot
Copy link
Contributor Author

Reported by hubert_wagener

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA CODEMODEL-5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant