org.exolab.javasource
public class JEnum extends JClass
| Constructor Summary | |
|---|---|
| protected | JEnum(String name) |
| Method Summary | |
|---|---|
| void | addConstant(JEnumConstant jConstant)
Adds the given JEnumConstant to this JEnum
|
| void | addMember(JMember jMember)
Adds the given JMember to this JAnnotationType
|
| JEnumConstant | getConstant(String name)
Returns the member with the given name, or null if no member
was found with the given name |
| JEnumConstant[] | getConstants()
Returns an array of all the JEnumConstant of this JEnum |
| static void | main(String[] args)
Test drive |
| void | print(JSourceWriter jsw)
Prints the source code for this JEnum to the given JSourceWriter |
| void | setSuperClass(String superClass) |
Parameters: name
Throws: IllegalArgumentException
Parameters: jConstant, the constant to add
Throws: IllegalArgumentException when the given JEnumConstant has the same name of an existing JEnumConstant.
Parameters: jMember, the JMember to add
Throws: IllegalArgumentException when the given JMember has the same name of an existing JEnumConstant or if the JMember is of an unrecognized class.
Parameters: name the name of the member to return
Returns: the member with the given name, or null if no member was found with the given name
Returns: an array of all the JEnumConstant of this JEnum
Parameters: args
Parameters: jsw the JSourceWriter to print to. [May not be null]