Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.classpath.tools.rmi.rmic
Class RmiMethodGenerator  view RmiMethodGenerator download RmiMethodGenerator.java

java.lang.Object
  extended bygnu.classpath.tools.rmi.rmic.RmiMethodGenerator
All Implemented Interfaces:
gnu.classpath.tools.AbstractMethodGenerator

public class RmiMethodGenerator
extends java.lang.Object
implements gnu.classpath.tools.AbstractMethodGenerator

Keeps information about the single method and generates the code fragments, related to that method.


Field Summary
(package private)  java.lang.reflect.Method method
          The method being defined.
(package private)  RmicCompiler rmic
          The parent code generator.
 
Constructor Summary
RmiMethodGenerator(java.lang.reflect.Method aMethod, RmicCompiler aRmic)
          Create the new method generator for the given method.
 
Method Summary
 java.lang.String convertStubName(java.lang.String name)
          Additional processing of the stub name (nothing to do for JRMP stubs).
 java.lang.String generateStubMethod()
          Generate this method for the Stub class.
 java.lang.String generateTieMethod()
          RMI ties (previously named Skeletons) are no longer used since v 1.2.
 java.lang.String getArgListAsClassArray()
          Get argument list as class array.
 java.lang.String getArgListAsObjectArray()
          Get the write statement for writing parameters inside the stub.
 java.lang.String getArgumentList()
          Get the method parameter declaration.
 java.lang.String getArgumentNames()
          Get the method parameter list only (no type declarations).
 java.lang.String getMethodHashCode()
          Get the method hash code.
 java.lang.String getReturnStatement()
          Get the return statement, assuming that the returned object is placed into the variable "result".
 java.lang.String getStaticMethodDeclarations()
          Generate sentences for Reading and Defining Arguments.
 java.lang.String getThrows()
          Get the list of exceptions, thrown by this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

java.lang.reflect.Method method
The method being defined.


rmic

RmicCompiler rmic
The parent code generator.

Constructor Detail

RmiMethodGenerator

public RmiMethodGenerator(java.lang.reflect.Method aMethod,
                          RmicCompiler aRmic)
Create the new method generator for the given method.

Method Detail

getArgumentList

public java.lang.String getArgumentList()
Get the method parameter declaration.


getArgumentNames

public java.lang.String getArgumentNames()
Get the method parameter list only (no type declarations). This is used to generate the method invocations statement.


getThrows

public java.lang.String getThrows()
Get the list of exceptions, thrown by this method.


generateStubMethod

public java.lang.String generateStubMethod()
Generate this method for the Stub class.

Specified by:
generateStubMethod in interface gnu.classpath.tools.AbstractMethodGenerator

getStaticMethodDeclarations

public java.lang.String getStaticMethodDeclarations()
Generate sentences for Reading and Defining Arguments.


getArgListAsObjectArray

public java.lang.String getArgListAsObjectArray()
Get the write statement for writing parameters inside the stub.


getReturnStatement

public java.lang.String getReturnStatement()
Get the return statement, assuming that the returned object is placed into the variable "result".


getArgListAsClassArray

public java.lang.String getArgListAsClassArray()
Get argument list as class array.


generateTieMethod

public java.lang.String generateTieMethod()
RMI ties (previously named Skeletons) are no longer used since v 1.2. This method should never be called.

Specified by:
generateTieMethod in interface gnu.classpath.tools.AbstractMethodGenerator

getMethodHashCode

public java.lang.String getMethodHashCode()
Get the method hash code.


convertStubName

public java.lang.String convertStubName(java.lang.String name)
Additional processing of the stub name (nothing to do for JRMP stubs).