org.openide.execution
Class ExecInfo

java.lang.Object
  |
  +--org.openide.execution.ExecInfo
Direct Known Subclasses:
DebuggerInfo

public class ExecInfo
extends Object

Provides basic information required to start executing a class.


Constructor Summary
ExecInfo(String className)
          Create a new descriptor with no arguments.
ExecInfo(String className, String[] argv)
          Create a new descriptor.
 
Method Summary
 String[] getArguments()
          Get the arguments (typically passed to main(String[])).
 String getClassName()
          Get the name of the class to execute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecInfo

public ExecInfo(String className,
                String[] argv)
Create a new descriptor.
Parameters:
className - the name of the class to execute
argv - an array of arguments for the class (may be empty but not null)

ExecInfo

public ExecInfo(String className)
Create a new descriptor with no arguments.
Parameters:
className - the name of the class to execute
Method Detail

getArguments

public String[] getArguments()
Get the arguments (typically passed to main(String[])).
Returns:
the arguments (never null)

getClassName

public String getClassName()
Get the name of the class to execute. This must typically have a public static void main(String[]) method.
Returns:
the class name


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.