Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.compile
Class SystemDefaultCompileCommands

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.compile.SystemDefaultCompileCommands
Direct Known Subclasses:
UniversalIBMCompileCommands

public abstract class SystemDefaultCompileCommands
extends Object

This class manages a list of compile commands.


Field Summary
static String Copyright
           
 
Constructor Summary
SystemDefaultCompileCommands()
          Constructor for ISeriesCompileCommands.
 
Method Summary
 void addCommand(SystemDefaultCompileCommand cmd)
          Add a new compile command to the list
 String fillWithRequiredParams(String commandString)
          Given a user-specified command string, check if the command is one of those defined in this list, and if so, verify it has all the minimum parameters.
abstract  String[] getAllDefaultSuppliedSourceTypes()
          Return all pre-defined compilable source types.
 SystemDefaultCompileCommand getCommand(int idx)
          Get the compile command at the given index
 SystemDefaultCompileCommand getCommand(String commandName)
          Get the compile command the corresponds to the given command name.
 String[] getCommandNames()
          Get the command names only as an array
 SystemDefaultCompileCommand[] getCommands()
          Get the commands as an array
 SystemDefaultCompileCommand[] getCommandsForSrcType(String srcType)
          Get the commands that match the given source types.
 String[] getCommandStrings()
          Get the fully-populated command strings as an array of string
 int getSize()
          Return a count of the compile commands in this list
 void printCommandLabels()
          Print the command labels to standard out, for debugging purposes
 void printCommandNames()
          Print the command names to standard out, for debugging purposes
 void printCommands()
          Print the full command strings to standard out, for debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

SystemDefaultCompileCommands

public SystemDefaultCompileCommands()
Constructor for ISeriesCompileCommands.

Method Detail

getAllDefaultSuppliedSourceTypes

public abstract String[] getAllDefaultSuppliedSourceTypes()
Return all pre-defined compilable source types. Eg, for a typical file system, this would be file extensions, like ".c", ".cpp",etc.


getCommand

public SystemDefaultCompileCommand getCommand(int idx)
Get the compile command at the given index


getCommand

public SystemDefaultCompileCommand getCommand(String commandName)
Get the compile command the corresponds to the given command name. Will return null if none found.


getCommands

public SystemDefaultCompileCommand[] getCommands()
Get the commands as an array


getCommandsForSrcType

public SystemDefaultCompileCommand[] getCommandsForSrcType(String srcType)
Get the commands that match the given source types. Never returns null, but may return an empty array.


getCommandNames

public String[] getCommandNames()
Get the command names only as an array


getCommandStrings

public String[] getCommandStrings()
Get the fully-populated command strings as an array of string


getSize

public int getSize()
Return a count of the compile commands in this list


fillWithRequiredParams

public String fillWithRequiredParams(String commandString)
Given a user-specified command string, check if the command is one of those defined in this list, and if so, verify it has all the minimum parameters. For any that are missing, add them...


addCommand

public void addCommand(SystemDefaultCompileCommand cmd)
Add a new compile command to the list


printCommandLabels

public void printCommandLabels()
Print the command labels to standard out, for debugging purposes


printCommandNames

public void printCommandNames()
Print the command names to standard out, for debugging purposes


printCommands

public void printCommands()
Print the full command strings to standard out, for debugging purposes


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.