home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / jikepg12.zip / jikespg / examples / expr / Option.java < prev    next >
Encoding:
Text File  |  1999-11-04  |  902 b   |  34 lines

  1. // $Id: Option.java,v 1.3 1999/11/04 14:02:18 shields Exp $
  2. // This software is subject to the terms of the IBM Jikes Compiler
  3. // License Agreement available at the following URL:
  4. // http://www.ibm.com/research/jikes.
  5. // Copyright (C) 1983, 1999, International Business Machines Corporation
  6. // and others.  All Rights Reserved.
  7. // You must accept the terms of that agreement to use this software.
  8.  
  9. class Option
  10. {
  11.     String filename;
  12.     boolean non_validating = true,
  13.             dump = false;
  14.  
  15.     Option(String [] args)
  16.     {
  17.         for (int i = 0; i < args.length; i++)
  18.         {
  19.             if (args[i].charAt(0) == '-')
  20.             {
  21.                 if (args[i].equals("-d"))
  22.                     dump = true;
  23.             }
  24.             else
  25.             {
  26.                 filename = args[i];
  27.                 break;
  28.             }
  29.         }
  30.  
  31.         return;
  32.     }
  33. }
  34.