public class

Main

extends Object
implements Constants
java.lang.Object
   ↳ sun.rmi.rmic.Main

Class Overview

Main "rmic" program. 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.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
[Expand]
Inherited Fields
From interface sun.rmi.rmic.Constants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Constructors
Main(OutputStream out, String program)
Constructor.
Public Methods
synchronized boolean compile(String[] argv)
Run the compiler
void compileAllClasses(BatchEnvironment env)
boolean compileClass(ClassDeclaration c, ByteArrayOutputStream buf, BatchEnvironment env)
boolean doCompile()
Do the compile with the switches and files already supplied
void error(String msg)
Top level error message.
void error(String msg, String arg1, String arg2)
void error(String msg, String arg1)
File getDestinationDir()
Get the destination directory.
BatchEnvironment getEnv()
Get the correct type of BatchEnvironment
static String getString(String key)
Return the string value of a named resource in the rmic.properties resource bundle.
static String getText(String key, String arg0, String arg1, String arg2)
static String getText(String key)
static String getText(String key, String arg0)
static String getText(String key, int num)
static String getText(String key, String arg0, String arg1)
static void main(String[] argv)
Main program
void output(String msg)
Output a message.
boolean parseArgs(String[] argv)
Parse the arguments for compile.
void usage()
Usage
Protected Methods
Generator addGenerator(String arg)
Instantiate and add a generator to the generators array.
boolean checkGeneratorArg(String[] argv, int currentIndex)
If this argument is for a generator, instantiate it, call parseArgs(...) and add generator to generators vector.
String[] getArray(String name, boolean mustExist)
Grab a resource string and parse it into an array of strings.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Main (OutputStream out, String program)

Constructor.

Public Methods

public synchronized boolean compile (String[] argv)

Run the compiler

public void compileAllClasses (BatchEnvironment env)

public boolean doCompile ()

Do the compile with the switches and files already supplied

public void error (String msg)

Top level error message. This method is called when the environment could not be set up yet.

public void error (String msg, String arg1, String arg2)

public void error (String msg, String arg1)

public File getDestinationDir ()

Get the destination directory.

public BatchEnvironment getEnv ()

Get the correct type of BatchEnvironment

public static String getString (String key)

Return the string value of a named resource in the rmic.properties resource bundle. If the resource is not found, null is returned.

public static String getText (String key, String arg0, String arg1, String arg2)

public static String getText (String key)

public static String getText (String key, String arg0)

public static String getText (String key, int num)

public static String getText (String key, String arg0, String arg1)

public static void main (String[] argv)

Main program

public void output (String msg)

Output a message.

public boolean parseArgs (String[] argv)

Parse the arguments for compile.

public void usage ()

Usage

Protected Methods

protected Generator addGenerator (String arg)

Instantiate and add a generator to the generators array.

protected boolean checkGeneratorArg (String[] argv, int currentIndex)

If this argument is for a generator, instantiate it, call parseArgs(...) and add generator to generators vector. Returns false on error.

protected String[] getArray (String name, boolean mustExist)

Grab a resource string and parse it into an array of strings. Assumes comma separated list.

Parameters
name The resource name.
mustExist If true, throws error if resource does not exist. If false and resource does not exist, returns zero element array.