Class Arguments

java.lang.Object
com.sun.tools.corba.ee.idl.Arguments
Direct Known Subclasses:
Arguments

public class Arguments extends Object
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 Details

    • file

      public String file
      The name of the IDL file.
    • verbose

      public boolean verbose
      True if the user wishes to see processing remarks.
    • keepOldFiles

      public boolean keepOldFiles
      If this is true, then existing files should not be overwritten by the compiler.
    • emitAll

      public boolean emitAll
      If this is true, then the types in all included files are also emitted.
    • includePaths

      public Vector<String> includePaths
      A list of strings, each of which is a path from which included files are found.
    • definedSymbols

      public Hashtable<String,String> 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

      protected void parseOtherArgs(String[] args, Properties properties) throws InvalidArgument
      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

      protected void setDebugFlags(String args)
    • parseArgs

      void parseArgs(String[] args) throws InvalidArgument
      Collect the command-line parameters.
      Parameters:
      args - arguments passed in
      Throws:
      InvalidArgument
    • addIncludePaths

      private void addIncludePaths(Properties props)