Method Summary |
|
public void | addField(JField jField) Adds the given JField to this Jinterface.
This method is implemented by subclasses and should only accept the
proper fields for the subclass otherwise an IllegalArgumentException will
be thrown. |
public void | addImport(String className) |
public void | addMember(JMember jMember) Adds the given JMember to this Jinterface. |
public void | addMethod(JMethodSignature jMethodSig) Adds the given JMethodSignature to this Jinterface. |
public JField | getField(String name) Returns the field with the given name, or null if no field was found with
the given name.
Parameters: name - The name of the field to return. |
public JField[] | getFields() Returns an array of all the JFields of this Jinterface. |
public JMethodSignature | getMethod(String name, int startIndex) Returns the JMethodSignature with the given name and occuring at or
after the given starting index.
Parameters: name - The name of the JMethodSignature to return. Parameters: startIndex - The starting index to begin searching from. |
public JMethodSignature | getMethod(int index) Returns the JMethodSignature at the given index.
Parameters: index - The index of the JMethodSignature to return. |
public JMethodSignature[] | getMethods() Returns an array of all the JMethodSignatures of this JInterface. |
public void | print(JSourceWriter jsw) |
public void | print(JSourceWriter jsw, boolean classOnly) Prints the source code for this JInterface to the given JSourceWriter.
Parameters: jsw - The JSourceWriter to print to. |