|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object javassist.expr.ExprEditor jp.hishidama.debuglogrm.AbstractDebugRemoveEditor jp.hishidama.debuglogrm.DebugRemoveEditor
public class DebugRemoveEditor
デバッグログ出力削除クラス.
デバッグログ出力メソッド(DebugLogWriteMethod
アノテーションの付いているメソッド)の削除を行うクラス。
削除を行う対象となるのは、UseDebugLog
アノテーションの付いているクラスのみ。
→使用例
コンストラクタの概要 | |
---|---|
DebugRemoveEditor()
コンストラクター. |
|
DebugRemoveEditor(String levelString)
コンストラクター. |
メソッドの概要 | |
---|---|
void |
addWriteLevel(DebugLevel level)
出力レベル設定. |
String |
getLevelString()
出力レベル文字列取得. |
boolean |
isWriteLevel(DebugLevel level)
出力レベル判定. |
void |
removeAllLevel()
出力レベル全削除. |
void |
removeLevel(DebugLevel level)
否出力レベル設定. |
void |
setDefaultLevel()
デフォルト出力レベル設定. |
void |
setLevel(String levelString)
出力レベル初期化. |
クラス jp.hishidama.debuglogrm.AbstractDebugRemoveEditor から継承されたメソッド |
---|
doit, edit, edit, edit, edit, edit, edit, edit, edit |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public DebugRemoveEditor()
出力レベルはデフォルト。
setDefaultLevel()
public DebugRemoveEditor(String levelString)
指定された出力レベルで初期化する。
setLevel(String)
メソッドの詳細 |
---|
public void setLevel(String levelString)
例:levelStringが「EWI」のとき、ERROR・WARNING・INFOレベルを出力する(その他のレベルの出力メソッドを削除する)。
levelString
- 出力レベルを複数の文字の組み合わせで指定する。ただしnullの場合はデフォルトとなる。 指定 | 出力レベル |
---|---|
F | FATALレベル |
E | ERRORレベル |
W | WARNINGレベル |
I | INFOレベル |
V | VERBOSEレベル |
D | DEBUGレベル |
T | TRACEレベル |
public void setDefaultLevel()
デフォルトは、FATAL・ERROR・WARNING・INFOレベル。
public void addWriteLevel(DebugLevel level)
level
- 出力レベルpublic void removeLevel(DebugLevel level)
level
- 出力しないレベルpublic void removeAllLevel()
public boolean isWriteLevel(DebugLevel level)
level
- 出力レベル
public String getLevelString()
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |