|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--coins.driver.CommandLine
Abstraction of a COINS compiler command line.
This class is used when the compiler is invoked from command line.
A COINS compiler command line is in the form:
java driver [{option | file }] ...`option' is a string starting with a `-'. As for compile options, see CompileSpecification in more detail.
CompileSpecification,
直列化された形式| フィールドの概要 | |
static java.lang.String |
COINS_DEFAULT_TARGET_CONVENTION
|
static java.lang.String |
COINS_DEFAULT_TARGET_NAME
|
static java.lang.String |
COINS_TARGET_CONVENTION_OPTION
|
static java.lang.String |
COINS_TARGET_NAME_OPTION
|
static java.lang.String |
COINS_TARGET_OPTION
|
| インタフェース coins.driver.CompileSpecification から継承したフィールド |
ARCHIVE_TO_LINK, ASSEMBLE_ONLY, COINS, COMPILE_ONLY, DEFINE_MACRO, DYNAMIC_LINKAGE, HELP, INCLUDE_PATH, INHIBIT_NUMBER_LINE, LINK_PATH, OPTIMIZE_LEVEL, OUTPUT_FILE, PERFORMANCE_MONITOR, PIPE, PREPROCESS_ONLY, PRESERVE_COMMENTS, PRESERVE_SYMBOLS, STATIC_LINKAGE, TARGET_ARCHITECTURE, UNDEFINE_MACRO, VERBOSE, WARNING_CATEGORY |
| コンストラクタの概要 | |
CommandLine()
Constructs a CommandLine object representing an empty command line string. |
|
CommandLine(java.lang.String[] args)
Constructs a CommandLine object representing a command line string. |
|
| メソッドの概要 | |
java.util.Map |
commandLineOptions()
|
java.lang.Object |
getArg(java.lang.String option)
Returns an argument of an option in this command line. |
java.util.List |
getAssemblerOptions()
Returns a List of Strings containing all assembler options specified in this command line. |
CoinsOptions |
getCoinsOptions()
Returns an CoinsOptions object which represents -coins options included in this command line. |
java.util.List |
getCompilerOptions()
Returns a List of Strings containing all compiler options specified in this command line. |
java.util.List |
getLinkerOptions()
Returns a List of Strings containing all linker options specified in this command line. |
java.util.List |
getPreprocessorOptions()
Returns a List of Strings containing all preprocessor options specified in this command line. |
java.util.List |
getSourceFiles()
Return a List of source file names listed in this command line. |
Trace |
getTrace()
Returns a Trace object which filters trace messages in a manner specified in this command line. |
Warning |
getWarning()
Returns a Warning object which filters warning messages in a manner specified in this command line. |
boolean |
isAssemblerOption(java.lang.String arg)
Tests if the argument string is one of assembler options. |
boolean |
isCompilerOption(java.lang.String arg)
Tests if the argument string is one of compiler options. |
boolean |
isLinkerOption(java.lang.String arg)
Tests if the argument string is one of linker options. |
boolean |
isPreprocessorOption(java.lang.String arg)
Tests if the argument string is one of preprocessor options. |
boolean |
isSet(java.lang.String option)
Tests if an option is set or not in this command line. |
void |
setObjectFile(java.lang.String sourceFile,
java.lang.String objectFile)
Registers a file as an object file of a specified source file. |
void |
showHelp(java.io.PrintStream out,
CompilerImplementation driver)
Shows help messages. |
java.lang.String |
toString()
Returns a String representation of this command line. |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
public static final java.lang.String COINS_TARGET_OPTION
public static final java.lang.String COINS_DEFAULT_TARGET_NAME
public static final java.lang.String COINS_TARGET_NAME_OPTION
public static final java.lang.String COINS_TARGET_CONVENTION_OPTION
public static final java.lang.String COINS_DEFAULT_TARGET_CONVENTION
| コンストラクタの詳細 |
public CommandLine()
public CommandLine(java.lang.String[] args)
throws java.text.ParseException
args - The command line string.
java.text.ParseException - error(s) in the command line.| メソッドの詳細 |
public void showHelp(java.io.PrintStream out,
CompilerImplementation driver)
CompileSpecification 内の showHelpout - A PrintStream to which the help messages are written.driver - A driver object which has the method `main'.public CoinsOptions getCoinsOptions()
CompileSpecification 内の getCoinsOptions
public void setObjectFile(java.lang.String sourceFile,
java.lang.String objectFile)
CompileSpecification 内の setObjectFilesourceFile - the source file nameobjectFile - the object file namepublic Trace getTrace()
CompileSpecification 内の getTracepublic Warning getWarning()
CompileSpecification 内の getWarningpublic boolean isSet(java.lang.String option)
CompileSpecification 内の isSetoption - the option string, including leading `-'.
public java.lang.Object getArg(java.lang.String option)
CompileSpecification 内の getArgoption - the option string, including leading `-'.
public java.util.List getSourceFiles()
CompileSpecification 内の getSourceFilespublic java.lang.String toString()
java.lang.Object 内の toStringpublic boolean isPreprocessorOption(java.lang.String arg)
CompileSpecification 内の isPreprocessorOptionarg - the argument string
public java.util.List getPreprocessorOptions()
CompileSpecification 内の getPreprocessorOptionspublic boolean isCompilerOption(java.lang.String arg)
CompileSpecification 内の isCompilerOptionarg - the argument string
public java.util.List getCompilerOptions()
CompileSpecification 内の getCompilerOptionspublic boolean isAssemblerOption(java.lang.String arg)
CompileSpecification 内の isAssemblerOptionarg - the argument string
public java.util.List getAssemblerOptions()
CompileSpecification 内の getAssemblerOptionspublic boolean isLinkerOption(java.lang.String arg)
CompileSpecification 内の isLinkerOptionarg - the argument string
public java.util.List getLinkerOptions()
CompileSpecification 内の getLinkerOptionspublic java.util.Map commandLineOptions()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||