|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.tools.xjc.generator.bean.MethodWriter
public abstract class MethodWriter
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.
| Method Summary | |
|---|---|
com.sun.codemodel.JVar |
addParameter(java.lang.Class type,
java.lang.String name)
|
abstract com.sun.codemodel.JVar |
addParameter(com.sun.codemodel.JType type,
java.lang.String name)
Adds a parameter to the previously declared method. |
com.sun.codemodel.JMethod |
declareMethod(java.lang.Class returnType,
java.lang.String methodName)
|
abstract com.sun.codemodel.JMethod |
declareMethod(com.sun.codemodel.JType returnType,
java.lang.String methodName)
Declares a method in both the interface and the implementation. |
abstract com.sun.codemodel.JDocComment |
javadoc()
To generate javadoc for the previously declared method, use this method to obtain a JDocComment object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract com.sun.codemodel.JMethod declareMethod(com.sun.codemodel.JType returnType,
java.lang.String methodName)
public final com.sun.codemodel.JMethod declareMethod(java.lang.Class returnType,
java.lang.String methodName)
public abstract com.sun.codemodel.JDocComment javadoc()
JDocComment object. This may return a value
different from declareMethod().javadoc().
public abstract com.sun.codemodel.JVar addParameter(com.sun.codemodel.JType type,
java.lang.String name)
public final com.sun.codemodel.JVar addParameter(java.lang.Class type,
java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||