|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.driver.Warning
Warning controller.
A warning controller is initialized by warning options specified in a
command line and determine which warning message should be printed.
There are two types of warning messages: generic (category-free) warning
messages and categorized warining messages.
A `warning number' is an identifier of a warning message. It can be given
to both types of a warning message, and if given, it is printed with the
message. Assignment of a warning number is out of scope of this class.
A warning option should be given in the forms:
-Wcategory
-Wno-categoryor,
-WallThe form -Wcategory is to print warning messages of category category, and the form -Wno-category is not to print. When both -Wcategory and -Wno-category are specified for a same category, the latter one overwrites the formar one. -Wall is to print all warning messages, except ones which is specified not to print. A generic warning message should be printed only if the -Wall is specified.
コンストラクタの概要 | |
Warning()
Constructs a default warning controller which has no warning. |
|
Warning(IoRoot pIo)
Constructs a default warning controller which has no warning specification and prints warning messages to a specified IoRoot. |
|
Warning(java.util.List warningArguments)
Constructs a warning controller which is initialized by warning options. |
|
Warning(java.util.List warningArguments,
IoRoot pIo)
Constructs a warning controller which is initialized by warning options and prints warning messages to a specified IoRoot. |
メソッドの概要 | |
boolean |
getGenericWarningFlag()
Return whether the -Wall is specified or not. |
java.lang.Boolean |
getWarningFlag(java.lang.String category)
Returns a corresponding Boolean value in the table associated with a warning category, or null if the category does not exist in the table. |
boolean |
setGenericWarningFlag(boolean newValue)
Redefines whether the -Wall is specified or not. |
void |
setIoRoot(IoRoot pIo)
|
java.lang.Boolean |
setWarningFlag(java.lang.String category,
boolean newFlag)
Redefines a corresponding Boolean value in the table associated with a warning category. |
boolean |
shouldWarn()
Tests if generic warning messages should be printed or not. |
boolean |
shouldWarn(java.lang.String category)
Tests if warning messages of a specified category should be printed or not. |
void |
warning(int warningNumber,
java.lang.String message)
Prints a generic warning message with a warning number when it should be printed. |
void |
warning(int warningNumber,
java.lang.String category,
java.lang.String message)
Prints a warning message of a certain warning category with a warning number when it should be printed. |
void |
warning(java.lang.String message)
Prints a generic warning message when it should be printed. |
void |
warning(java.lang.String category,
java.lang.String message)
Prints a warning message of a certain warning category when it should be printed. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public Warning()
public Warning(IoRoot pIo)
public Warning(java.util.List warningArguments)
warningArguments
- the option stringspublic Warning(java.util.List warningArguments, IoRoot pIo)
warningArguments
- the option stringspIo
- the IoRootメソッドの詳細 |
public boolean getGenericWarningFlag()
public boolean setGenericWarningFlag(boolean newValue)
newValue
- the new value
public java.lang.Boolean getWarningFlag(java.lang.String category)
category
- the categorypublic java.lang.Boolean setWarningFlag(java.lang.String category, boolean newFlag)
category
- the categorynewFlag
- the new value
public boolean shouldWarn()
public boolean shouldWarn(java.lang.String category)
category
- the category
public void setIoRoot(IoRoot pIo)
public void warning(java.lang.String message)
message
- the warning messagepublic void warning(int warningNumber, java.lang.String message)
warningNumber
- the warning numbermessage
- the warning messagepublic void warning(java.lang.String category, java.lang.String message)
category
- the warning categorymessage
- the warning messagepublic void warning(int warningNumber, java.lang.String category, java.lang.String message)
warningNumber
- the warning numbercategory
- the warning categorymessage
- the warning message
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |