|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Abstraction of a specification of compilation, i.e., specification of
options, arguments and source files.
Objects that implements this interface provide accesses to a compile
specification through this interface. It may be generated by parsing
command line, may be by asking to an operator through GUI, or may be
generated from some database record automatically.
option may be one of:
フィールドの概要 | |
static java.lang.String |
ARCHIVE_TO_LINK
Option to speficy an archive to link. |
static java.lang.String |
ASSEMBLE_ONLY
Switch not to link. |
static java.lang.String |
COINS
Option header of COINS options. |
static java.lang.String |
COMPILE_ONLY
Switch to stop after assembly code generation and leave it. |
static java.lang.String |
DEFINE_MACRO
Option header to define a preprocessor macro. |
static java.lang.String |
DYNAMIC_LINKAGE
Option to use dynamic linkage. |
static java.lang.String |
HELP
Switch to show help. |
static java.lang.String |
INCLUDE_PATH
Option header to specify an include path. |
static java.lang.String |
INHIBIT_NUMBER_LINE
Option header not to output #line directives. |
static java.lang.String |
LINK_PATH
Option to specify an archive search path. |
static java.lang.String |
OPTIMIZE_LEVEL
Option header to set optimization level. |
static java.lang.String |
OUTPUT_FILE
Option to specify an output file. |
static java.lang.String |
PERFORMANCE_MONITOR
Option to use performance monitor. |
static java.lang.String |
PIPE
Switch to use pipe rather than temporary files to communicate between passes. |
static java.lang.String |
PREPROCESS_ONLY
Switch to stop after preprocessing and leave a preprocessed source code. |
static java.lang.String |
PRESERVE_COMMENTS
Switch to preserve comments in output file. |
static java.lang.String |
PRESERVE_SYMBOLS
Option to preserve all symbols. |
static java.lang.String |
STATIC_LINKAGE
Option to use static linkage. |
static java.lang.String |
TARGET_ARCHITECTURE
Option to specify a target architecture. |
static java.lang.String |
UNDEFINE_MACRO
Option header to undefine a preprocessor macro. |
static java.lang.String |
VERBOSE
Verbose option. |
static java.lang.String |
WARNING_CATEGORY
Option header to show warning messages of a category. |
メソッドの概要 | |
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()
Returns 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. |
フィールドの詳細 |
public static final java.lang.String PREPROCESS_ONLY
public static final java.lang.String COMPILE_ONLY
public static final java.lang.String ASSEMBLE_ONLY
public static final java.lang.String HELP
public static final java.lang.String OUTPUT_FILE
public static final java.lang.String TARGET_ARCHITECTURE
public static final java.lang.String VERBOSE
public static final java.lang.String PIPE
public static final java.lang.String WARNING_CATEGORY
public static final java.lang.String PRESERVE_COMMENTS
public static final java.lang.String DEFINE_MACRO
public static final java.lang.String INCLUDE_PATH
public static final java.lang.String INHIBIT_NUMBER_LINE
public static final java.lang.String UNDEFINE_MACRO
public static final java.lang.String OPTIMIZE_LEVEL
public static final java.lang.String PRESERVE_SYMBOLS
public static final java.lang.String PERFORMANCE_MONITOR
public static final java.lang.String LINK_PATH
public static final java.lang.String DYNAMIC_LINKAGE
public static final java.lang.String STATIC_LINKAGE
public static final java.lang.String ARCHIVE_TO_LINK
public static final java.lang.String COINS
メソッドの詳細 |
public boolean isSet(java.lang.String option)
option
- the option string, including leading `-'.
public java.lang.Object getArg(java.lang.String option)
option
- the option string, including leading `-'.
public boolean isPreprocessorOption(java.lang.String arg)
arg
- the argument string
public java.util.List getPreprocessorOptions()
public boolean isCompilerOption(java.lang.String arg)
arg
- the argument string
public java.util.List getCompilerOptions()
public boolean isAssemblerOption(java.lang.String arg)
arg
- the argument string
public java.util.List getAssemblerOptions()
public boolean isLinkerOption(java.lang.String arg)
arg
- the argument string
public java.util.List getLinkerOptions()
public CoinsOptions getCoinsOptions()
public java.util.List getSourceFiles()
public void setObjectFile(java.lang.String sourceFile, java.lang.String objectFile)
sourceFile
- the source file nameobjectFile
- the object file name
java.lang.Error
- there is no source file sourceFilepublic Trace getTrace()
public Warning getWarning()
public void showHelp(java.io.PrintStream out, CompilerImplementation driver)
out
- A PrintStream to which the help messages are written.driver
- A driver object which has the method `main'.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |