Method Summary |
|
public void | addMethod(JMethod jMethod) Adds the given JMethod to this JEnumConstant. |
public void | addMethod(JMethod jMethod, boolean importReturnType) Adds the given JMethod to this JEnumConstant.
Parameters: jMethod - The JMethod to add. Parameters: importReturnType - True if we add the importReturnType to the classimport lists. |
public void | addMethods(JMethod[] jMethods) Adds the given array of JMethods to this JEnumConstant. |
public String[] | getArguments() Returns the arguments used by this constant. |
public JDocComment | getComment() Returns the JavaDoc comment describing this JEnumConstant. |
public JMethod | getMethod(String name, int startIndex) Returns the first occurance of the method with the given name, starting
from the specified index.
Parameters: name - The name of the method to look for. Parameters: startIndex - The starting index to begin the search. |
public JMethod | getMethod(int index) Returns the JMethod located at the specified index.
Parameters: index - The index of the JMethod to return. |
public JMethod[] | getMethods() Returns an array of all the JMethods of this JEnumConstant. |
public JModifiers | getModifiers() Returns the modifiers for this JEnumConstant. |
public String | getName() Returns the name of this JEnumConstant. |
public void | print(JSourceWriter jsw) prints this enum constant.
Parameters: jsw - The JSourceWriter to print to. |
public void | setArguments(String[] args) Sets the arguments specified by this constant. |
public void | setComment(JDocComment comment) Sets the JavaDoc comment describing this JEnumConstant. |
public void | setComment(String comment) Sets the JavaDoc comment describing this JEnumConstant. |
public void | setName(String name) Sets the name of this JEnumConstant. |