Package com.sun.tools.corba.ee.idl
Class Arguments
java.lang.Object
com.sun.tools.corba.ee.idl.Arguments
- Direct Known Subclasses:
Arguments
This class is responsible for parsing the command line arguments to the
compiler. To add new arguments to the compiler, this class must be extended
and the parseOtherArgs method overridden.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
-corba [level] option, where [level] is a floating-point number indicating the maximal level of CORBA IDL the parser framework can accept.boolean
<f46082.46.01> True if new module entries are created for each re-opened module.A table of defined symbols.boolean
If this is true, then the types in all included files are also emitted.The name of the IDL file.A list of strings, each of which is a path from which included files are found.boolean
If this is true, then existing files should not be overwritten by the compiler.boolean
-noWarn option.boolean
boolean
boolean
True if the user wishes to see processing remarks.boolean
-version option. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addIncludePaths
(Properties props) (package private) void
Collect the command-line parameters.protected void
parseOtherArgs
(String[] args, Properties properties) Method parseOtherArgs() is called when the framework detects arguments which are unknown to it.protected void
setDebugFlags
(String args)
-
Field Details
-
file
The name of the IDL file. -
verbose
public boolean verboseTrue if the user wishes to see processing remarks. -
keepOldFiles
public boolean keepOldFilesIf this is true, then existing files should not be overwritten by the compiler. -
emitAll
public boolean emitAllIf this is true, then the types in all included files are also emitted. -
includePaths
A list of strings, each of which is a path from which included files are found. -
definedSymbols
A table of defined symbols. The key is the symbol name; the value (if any) is the replacement value for the symbol. -
cppModule
public boolean cppModule<f46082.46.01> True if new module entries are created for each re-opened module. -
versionRequest
public boolean versionRequest-version option. -
corbaLevel
public float corbaLevel-corba [level] option, where [level] is a floating-point number indicating the maximal level of CORBA IDL the parser framework can accept. -
noWarn
public boolean noWarn-noWarn option. Suppress warnings when true. -
scannerDebugFlag
public boolean scannerDebugFlag -
tokenDebugFlag
public boolean tokenDebugFlag
-
-
Constructor Details
-
Arguments
public Arguments()
-
-
Method Details
-
parseOtherArgs
Method parseOtherArgs() is called when the framework detects arguments which are unknown to it. The default implementation of this method simply throws an InvalidArgument exception. Any overriding implementation must check the arguments passed to it for validity and process the arguments appropriately. If it detects an invalid argument, it should throw an InvalidArgument exception. Arguments MUST be of the form `/<arg> [<qualifiers>]' or `-<arg> [<qualifiers>]' where <qualifiers> is optional (for example, -iC:\includes, `C:\includes' is the qualifier for the argument `i').- Parameters:
args
- The arguments which are unknown by the framework.properties
- Environment-style properties collected from the file idl.config.- Throws:
InvalidArgument
- if the argument is unknown.
-
setDebugFlags
-
parseArgs
Collect the command-line parameters.- Parameters:
args
- arguments passed in- Throws:
InvalidArgument
-
addIncludePaths
-