2362N/A * Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any * <p><b>This is NOT part of any supported API. * If you write code that depends on this, you do so at your own * risk. This code and its internal interfaces are subject to change * or deletion without notice.</b></p> /** Does this option take a (separate) operand? * @return true if this option takes a separate operand /** Does argument string match option pattern? * @param arg the command line argument string * @return true if {@code arg} matches this option /** Process an option with an argument. * @param options the accumulated set of analyzed options * @param option the option to be processed * @param arg the arg for the option to be processed * @return true if an error was detected /** Process the option with no argument. * @param options the accumulated set of analyzed options * @param option the option to be processed * @return true if an error was detected /** This class represents an option recognized by the main program /** Documentation key for arguments. /** Documentation key for description. /** Suffix option (-foo=bar or -foo:bar) /** The kind of choices for this option, if any. /** The choices for this option, if any, and whether or not the choices /** Print a line of documentation describing this option, if standard. * @param out the stream to which to write the documentation /** Print a line of documentation describing this option, if non-standard. * @param out the stream to which to write the documentation /** Process the option (with arg). Return true if error detected. // some clients like to see just one of option+choice set // some clients like to see option (without trailing ":") // set option+word for each word in arg /** Process the option (without arg). Return true if error detected. /** A nonstandard or extended (-X) option /** A hidden (implementor) option