| java.lang.Object com.sun.tools.xjc.generator.bean.MethodWriter
MethodWriter | abstract public class MethodWriter (Code) | | The back-end may or may not generate the content interface
separately from the implementation class. If so, a method
needs to be declared on both the interface and the implementation class.
This class hides those details and allow callers to declare
methods just once.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
addParameter | abstract public JVar addParameter(JType type, String name)(Code) | | Adds a parameter to the previously declared method.
JVar object that represents a newly added parameteron the implementation class. |
declareMethod | abstract public JMethod declareMethod(JType returnType, String methodName)(Code) | | Declares a method in both the interface and the implementation.
JMethod object that represents a newly declared methodon the implementation class. |
javadoc | abstract public JDocComment javadoc()(Code) | | To generate javadoc for the previously declared method, use this method
to obtain a
JDocComment object. This may return a value
different from declareMethod().javadoc().
|
|
|