|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.java.gen.ClassComponent
com.caucho.java.gen.BaseMethod
public class BaseMethod
Basic method generation.
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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 ClassComponent
out
- the writer to the output stream.
java.io.IOException
public java.lang.String[] generateMethodHeader(JavaWriter out) throws java.io.IOException
out
- the writer to the output stream.
java.io.IOException
protected void generateCall(JavaWriter out, java.lang.String[] args) throws java.io.IOException
out
- the writer to the output stream.args
- the arguments
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |