public class BaseMethod extends ClassComponent
| Constructor and Description |
|---|
BaseMethod(java.lang.reflect.Method method)
Creates the base method
|
BaseMethod(java.lang.reflect.Method method,
CallChain call)
Creates the base method
|
BaseMethod(java.lang.reflect.Method apiMethod,
java.lang.reflect.Method implMethod)
Creates the base method
|
BaseMethod(java.lang.String methodName,
CallChain call)
Creates the base method
|
| Modifier and Type | Method and Description |
|---|---|
void |
generate(JavaWriter out)
Generates the code for the class.
|
protected void |
generateCall(JavaWriter out,
java.lang.String[] args)
Generates the code for the call.
|
java.lang.String[] |
generateMethodHeader(JavaWriter out)
Generates the method header
|
CallChain |
getCall()
Returns the call.
|
java.lang.Class[] |
getExceptionTypes()
Returns the exception types.
|
java.lang.reflect.Method |
getMethod()
Returns the method.
|
java.lang.String |
getMethodName()
Returns the method name.
|
java.lang.Class[] |
getParameterTypes()
Returns the parameter types.
|
java.lang.Class |
getReturnType()
Gets the return type.
|
void |
setCall(CallChain call)
Sets the call.
|
public BaseMethod(java.lang.String methodName,
CallChain call)
public BaseMethod(java.lang.reflect.Method method,
CallChain call)
public BaseMethod(java.lang.reflect.Method method)
public BaseMethod(java.lang.reflect.Method apiMethod,
java.lang.reflect.Method implMethod)
public CallChain getCall()
public void setCall(CallChain call)
public java.lang.reflect.Method getMethod()
public java.lang.String getMethodName()
public java.lang.Class[] getParameterTypes()
public java.lang.Class getReturnType()
public java.lang.Class[] getExceptionTypes()
public void generate(JavaWriter out) throws java.io.IOException
generate in class ClassComponentout - the writer to the output stream.java.io.IOExceptionpublic java.lang.String[] generateMethodHeader(JavaWriter out) throws java.io.IOException
out - the writer to the output stream.java.io.IOExceptionprotected void generateCall(JavaWriter out, java.lang.String[] args) throws java.io.IOException
out - the writer to the output stream.args - the argumentsjava.io.IOException