com.caucho.java.gen
Class CallChain

java.lang.Object
  extended by com.caucho.java.gen.CallChain
Direct Known Subclasses:
FilterCallChain, MethodCallChain

public class CallChain
extends java.lang.Object

Generates code for a method call.


Constructor Summary
CallChain()
           
 
Method Summary
 void generateCall(JavaWriter out, java.lang.String retVar, java.lang.String var, java.lang.String[] args)
          Generates the code for the method call.
 java.lang.Class[] getExceptionTypes()
          Returns the method's exception types.
 java.lang.Class[] getParameterTypes()
          Returns the method's parameter types.
 java.lang.Class getReturnType()
          Returns the method's return type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallChain

public CallChain()
Method Detail

getParameterTypes

public java.lang.Class[] getParameterTypes()
Returns the method's parameter types.


getReturnType

public java.lang.Class getReturnType()
Returns the method's return type.


getExceptionTypes

public java.lang.Class[] getExceptionTypes()
Returns the method's exception types.


generateCall

public void generateCall(JavaWriter out,
                         java.lang.String retVar,
                         java.lang.String var,
                         java.lang.String[] args)
                  throws java.io.IOException
Generates the code for the method call.

Parameters:
out - the writer to the output stream.
retVar - the variable to hold the return value
var - the object to be called
args - the method arguments
Throws:
java.io.IOException