KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > tools > OptionChecker


1 /*
2  * @(#)OptionChecker.java 1.3 06/04/08
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.tools;
9
10 /**
11  * Interface for recognizing options.
12  *
13  * @author Peter von der Ahé
14  * @since 1.6
15  */

16 public interface OptionChecker {
17
18     /**
19      * Determines if the given option is supported and if so, the
20      * number of arguments the option takes.
21      *
22      * @param option an option
23      * @return the number of arguments the given option takes or -1 if
24      * the option is not supported
25      */

26     int isSupportedOption(String JavaDoc option);
27
28 }
29
Popular Tags