public class

RMIGenerator

extends Object
implements Generator RMIConstants
java.lang.Object
   ↳ sun.rmi.rmic.RMIGenerator

Class Overview

A Generator object will generate the Java source code of the stub and skeleton classes for an RMI remote implementation class, using a particular stub protocol version. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.

Summary

[Expand]
Inherited Constants
From interface sun.rmi.rmic.RMIConstants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
[Expand]
Inherited Fields
From interface sun.rmi.rmic.Constants
From interface sun.rmi.rmic.RMIConstants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Constructors
RMIGenerator()
Default constructor for Main to use.
Public Methods
void generate(BatchEnvironment env, ClassDefinition cdef, File destDir)
Generate the source files for the stub and/or skeleton classes needed by RMI for the given remote implementation class.
boolean parseArgs(String[] argv, Main main)
Examine and consume command line arguments.
Protected Methods
static File sourceFileForClass(Identifier className, Identifier outputClassName, File destDir, BatchEnvironment env)
Return the File object that should be used as the source file for the given Java class, using the supplied destination directory for the top of the package hierarchy.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.rmi.rmic.Generator

Public Constructors

public RMIGenerator ()

Default constructor for Main to use.

Public Methods

public void generate (BatchEnvironment env, ClassDefinition cdef, File destDir)

Generate the source files for the stub and/or skeleton classes needed by RMI for the given remote implementation class.

Parameters
env compiler environment
cdef definition of remote implementation class to generate stubs and/or skeletons for
destDir directory for the root of the package hierarchy for generated files

public boolean parseArgs (String[] argv, Main main)

Examine and consume command line arguments.

Parameters
argv The command line arguments. Ignore null and unknown arguments. Set each consumed argument to null.
main Report any errors using the main.error() methods.
Returns
  • true if no errors, false otherwise.

Protected Methods

protected static File sourceFileForClass (Identifier className, Identifier outputClassName, File destDir, BatchEnvironment env)

Return the File object that should be used as the source file for the given Java class, using the supplied destination directory for the top of the package hierarchy.