IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.pluglets.host
Class PlugletCompiler

java.lang.Object
  extended bycom.ibm.xtools.pluglets.host.PlugletCompiler
All Implemented Interfaces:
IPlugletCompiler

public class PlugletCompiler
extends Object
implements IPlugletCompiler

The default implementation of the IPlugletCompiler interface.

Pluglet hosts can use this class or provide their own implementation.


Constructor Summary
PlugletCompiler()
          Constructs a pluglet compiler.
PlugletCompiler(PrintWriter output, String jdkRoot, boolean tracing)
          Constructs a pluglet compiler.
 
Method Summary
 int compile(String[] args)
          Invokes the Java compiler with the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlugletCompiler

public PlugletCompiler(PrintWriter output,
                       String jdkRoot,
                       boolean tracing)
Constructs a pluglet compiler.

Parameters:
output - The host's PrintWriter for the compiler output.
jdkRoot - The pathname of the JDK. For example, "C:\jdk1.3".
tracing - Enable tracing.

PlugletCompiler

public PlugletCompiler()
Constructs a pluglet compiler.

Method Detail

compile

public int compile(String[] args)
Description copied from interface: IPlugletCompiler
Invokes the Java compiler with the given arguments.

Specified by:
compile in interface IPlugletCompiler
Parameters:
args - The arguments of the compilation.
Returns:
Returns zero if the compilation is successful. Otherwise, it returns a non-zero value.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.