com.sun.tools.xjc.generator.bean
public abstract class MethodWriter extends Object
This class hides those details and allow callers to declare methods just once.
Field Summary | |
---|---|
protected JCodeModel | codeModel |
Constructor Summary | |
---|---|
protected | MethodWriter(ClassOutline context) |
Method Summary | |
---|---|
abstract JVar | addParameter(JType type, String name)
Adds a parameter to the previously declared method.
|
JVar | addParameter(Class type, String name) |
abstract JMethod | declareMethod(JType returnType, String methodName)
Declares a method in both the interface and the implementation.
|
JMethod | declareMethod(Class returnType, String methodName) |
abstract JDocComment | javadoc()
To generate javadoc for the previously declared method, use this method
to obtain a JDocComment object. |
Returns: JVar object that represents a newly added parameter on the implementation class.
Returns: JMethod object that represents a newly declared method on the implementation class.