org.exolab.javasource
public final 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 JEnum.
|
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 the name for this JEnum
Parameters: jConstant the constant to add
Parameters: jMember the JMember to add
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 command-line arguments.
Parameters: jsw the JSourceWriter to print to. Must not be null.
See Also:
{@inheritDoc }