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

Quick Search    Search Deep

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

java.lang.Object
  extended bygnu.classpath.tools.giop.grmic.Generator
      extended bygnu.classpath.tools.giop.grmic.GiopRmicCompiler
          extended bygnu.classpath.tools.rmi.rmic.RmicCompiler
All Implemented Interfaces:
java.util.Comparator

public class RmicCompiler
extends gnu.classpath.tools.giop.grmic.GiopRmicCompiler

RMI stub source code generator, required to support java.rmi.*


Field Summary
 boolean addZeroSizeObjecArray
          If true, the zero size object array is declared in the stub to reduce garbage generation.
 
Fields inherited from class gnu.classpath.tools.giop.grmic.GiopRmicCompiler
extraImports, force, implementedRemotes, implName, methods, name, packag, poaMode, stubName, vars, verbose, warnings
 
Constructor Summary
RmicCompiler()
           
 
Method Summary
 java.lang.String convertStubName(java.lang.String name)
          Additional processing of the stub name (nothing to do for JRMP stubs).
protected  gnu.classpath.tools.AbstractMethodGenerator createMethodGenerator(java.lang.reflect.Method m)
          Create a method generator, applicable for RMI stub methods.
 java.lang.String generateStub()
          Generate a RMI stub.
 java.lang.String getStubMethodDeclarations()
          Get the stub method declarations.
 java.lang.String getStubMethodInitializations()
          Get stub method initializations.
 void reset()
          Prepare for the compilation of the next class.
 
Methods inherited from class gnu.classpath.tools.giop.grmic.GiopRmicCompiler
compare, compile, generateTie, getAllInterfaces, getId, getIdList, getImportStatements, getPackageName, getStubName, name, setForce, setPoaMode, setVerbose, setWarnings
 
Methods inherited from class gnu.classpath.tools.giop.grmic.Generator
getResource, replaceAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

addZeroSizeObjecArray

public boolean addZeroSizeObjecArray
If true, the zero size object array is declared in the stub to reduce garbage generation.

Constructor Detail

RmicCompiler

public RmicCompiler()
Method Detail

generateStub

public java.lang.String generateStub()
Generate a RMI stub.


createMethodGenerator

protected gnu.classpath.tools.AbstractMethodGenerator createMethodGenerator(java.lang.reflect.Method m)
Create a method generator, applicable for RMI stub methods.


getStubMethodDeclarations

public java.lang.String getStubMethodDeclarations()
Get the stub method declarations.


getStubMethodInitializations

public java.lang.String getStubMethodInitializations()
Get stub method initializations. These must be done in a try-catch statement to catch java.lang.NoSuchMethodException.


reset

public void reset()
Prepare for the compilation of the next class.


convertStubName

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