|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectts.tester.coverage.Coverage
ts.tester.coverage.LineCoverage
public class LineCoverage
行カバレッジの計測を実行するクラス。
| 入れ子のクラスの概要 |
|---|
| クラス ts.tester.coverage.Coverage から継承された入れ子のクラス/インタフェース |
|---|
Coverage.FilterType, Coverage.MethodKey |
| コンストラクタの概要 | |
|---|---|
LineCoverage(java.lang.Class<?> execClass)
実行クラスを引数にとるコンストラクタ。 |
|
LineCoverage(java.lang.Class<?> execClass,
java.lang.String commandArgs)
実行クラスとその main関数に渡されるコマンドライン引数文字列を
引数にとるコンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
java.util.Collection<java.lang.String> |
allClassNames()
カバレッジの対象となる全クラスの名前のコレクションを取得する。 |
java.util.Collection<java.lang.String> |
allSourcePaths()
カバレッジの対象となる全ソースファイルのコレクションを取得する。 |
protected void |
entryClass(com.sun.jdi.ReferenceType refType)
カバレッジ計測中において、クラスの登録時に呼ばれるメソッドである。 |
protected void |
entryLine(com.sun.jdi.Location location)
カバレッジの準備処理において、ソースコードの各行の登録を行うために呼ばれる メソッドである。 |
protected void |
entryMethod(com.sun.jdi.Method method)
カバレッジ計測中において、メソッドの呼び出し時に呼ばれるメソッドである。 |
protected void |
exitMethod(com.sun.jdi.Method method)
カバレッジ計測中において、メソッドの終了時に呼ばれるメソッドである。 |
Result<java.lang.Integer> |
getClassResult(java.lang.String className,
Result<java.lang.Integer> parent)
クラス名から CaseResultオブジェクトを
取得する。 |
Result<java.lang.Integer> |
getMethodResult(Coverage.MethodKey methodKey,
Result<java.lang.Integer> parent)
指定されたメソッド・キーに対応するメソッドの CaseResultオブジェクトを取得する。 |
Result<java.lang.Integer> |
getMethodResult(com.sun.jdi.Method method,
Result<java.lang.Integer> parent)
指定されたメソッドに対応付けられた CaseResultオブジェクトを取得する。 |
PassResult<java.lang.Integer> |
getPassResult(java.lang.String srcPath)
ソースファイルパスから PassResult
オブジェクトを取得する。 |
java.util.Collection<Coverage.MethodKey> |
methodKeysOf(java.lang.String className)
カバレッジの対象となる全てのメソッドのリストを取得する。 |
protected void |
passLine(com.sun.jdi.Location location)
カバレッジ計測中において、ソースコードの各行を通過した際に呼ばれるメソッド である。 |
| クラス ts.tester.coverage.Coverage から継承されたメソッド |
|---|
addClassPath, addExclusionClassPattern, addTargetClassPattern, executeVM, handleEvent, launchVM, prepareVM, run, setClassFilterType, setErrorStream, setEventOfEntryMethodEnabled, setEventOfExitMethodEnabled, setExecClass, setObjectWriter, setOutputStream, setPrinter, setSourceBasePath, setVMOptions |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public LineCoverage(java.lang.Class<?> execClass)
execClass - 実行クラス。
java.lang.AssertionError - 引数がヌルの場合(デバッグモードのみ)。
public LineCoverage(java.lang.Class<?> execClass,
java.lang.String commandArgs)
main関数に渡されるコマンドライン引数文字列を
引数にとるコンストラクタ。
execClass - 実行クラス。commandArgs - コマンドライン引数文字列。
java.lang.AssertionError - 引数がヌルの場合(デバッグモードのみ)。| メソッドの詳細 |
|---|
protected void entryLine(com.sun.jdi.Location location)
Coverage 内の entryLinelocation - ソースコードの行を示すオブジェクト。
public Result<java.lang.Integer> getMethodResult(Coverage.MethodKey methodKey,
Result<java.lang.Integer> parent)
CaseResultオブジェクトを取得する。
CaseResultオブジェクトが
登録されていない場合は、新たに登録して返す。
methodKey - メソッド・キー。parent - 親となるカバレッジ結果オブジェクト。
CaseResultオブジェクト。
public Result<java.lang.Integer> getMethodResult(com.sun.jdi.Method method,
Result<java.lang.Integer> parent)
CaseResultオブジェクトを取得する。
CaseResultオブジェクトが
登録されていない場合は、新たに登録して返す。
method - メソッド。parent - 親となるカバレッジ結果オブジェクト。
CaseResultオブジェクト。
public Result<java.lang.Integer> getClassResult(java.lang.String className,
Result<java.lang.Integer> parent)
CaseResultオブジェクトを
取得する。
CaseResultオブジェクトが登録されていない場合は、新たに登録して返す。
className - クラス名。parent - 親となるカバレッジ結果オブジェクト。
CaseResultオブジェクト。public PassResult<java.lang.Integer> getPassResult(java.lang.String srcPath)
PassResult
オブジェクトを取得する。
PassResult
オブジェクトが登録されていない場合は、新たに登録して返す。
srcPath - ソースファイルパス。
PassResultオブジェクト。protected void passLine(com.sun.jdi.Location location)
Coverage 内の passLinelocation - ソースコードの行を示すオブジェクト。protected void entryClass(com.sun.jdi.ReferenceType refType)
Coverage 内の entryClassrefType - 登録されたクラス又はインターフェイスを示すオブジェクト。protected void entryMethod(com.sun.jdi.Method method)
Coverage 内の entryMethodmethod - メソッド。protected void exitMethod(com.sun.jdi.Method method)
Coverage 内の exitMethodmethod - メソッド。public java.util.Collection<java.lang.String> allSourcePaths()
Coverage 内の allSourcePathspublic java.util.Collection<java.lang.String> allClassNames()
Coverage 内の allClassNamespublic java.util.Collection<Coverage.MethodKey> methodKeysOf(java.lang.String className)
Coverage 内の methodKeysOfclassName - クラス名。
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||