[forge-dev] Looking for documentation for creating ENUM classes

Lincoln Baxter lbaxter at redhat.com
Fri Dec 21 19:14:45 EST 2012


I believe someone is working on this now if it has not been done already. But basically, you would use:

JavaParser.create(JavaEnum.class) ...

Then manipulate and write out the file to a JavaResource (if you're doing this in a plugin operating on a Java project.)

~Lincoln

----- Original Message -----
From: "Robb Greathouse" <robb.greathouse at jboss.com>
To: "Lincoln Baxter" <lbaxter at redhat.com>
Sent: Thursday, December 13, 2012 1:01:51 PM
Subject: Looking for documentation for creating ENUM classes

Hi,

I was wondering if we had any instruction for creating an ENUM type example

entity --named MyEnumType --??

or

enum --named MyEnumType

Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906



More information about the forge-dev mailing list