org.seasar.framework.unit.impl
クラス IntrospectorUtil
java.lang.Object
org.seasar.framework.unit.impl.IntrospectorUtil
public class IntrospectorUtil
- extends Object
- 作成者:
- taedium
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntrospectorUtil
public IntrospectorUtil()
getAnnotatedMethods
public static List<Method> getAnnotatedMethods(Class<?> clazz,
Class<? extends Annotation> annotationClass)
- アノテーションが付与されたメソッドのリストを返します。
- パラメータ:
clazz
- テストクラスannotationClass
- アノテーションクラス
- 戻り値:
- アノテーションが付与されたメソッドのリスト
getSuperClasses
public static List<Class<?>> getSuperClasses(Class<?> clazz)
- スーパークラスのリストを返します。
- パラメータ:
clazz
- 基点となるクラス
- 戻り値:
- スーパークラスのリスト
isShadowed
public static boolean isShadowed(Method method,
List<Method> results)
method
がresult
内のメソッドに隠蔽されるならばtrue
を返します。
- パラメータ:
method
- 検査の対象のメソッドresults
- 隠蔽されていないメソッドのリスト
- 戻り値:
result
内のメソッドにmethod
が隠蔽される場合true
、そうでない場合false
isShadowed
protected static boolean isShadowed(Method current,
Method previous)
current
がprevious
に隠蔽される場合true
を返します。
- パラメータ:
current
- 検査の対象のメソッドprevious
- 隠蔽されていないメソッド
- 戻り値:
- <
current
がprevious
に隠蔽される場合true
、そうでない場合false
Copyright ? 2004-2008 The Seasar Foundation. All Rights Reserved.