public abstract class ClassUtils extends ObjectSE
| 修飾子と型 | メソッドと説明 |
|---|---|
static void | assertReturnTypeAssignable(MethodSE method, ClassSE<?>... types) 指定された MethodSE の戻り値の型が指定された型の 1 つであることを表明します。 |
static int | getNumberOfOccurences(MethodSE method, ClassSE<?> type) 指定された MethodSE のパラメーターで指定された型の出現箇所の数を返します。 |
static boolean | hasParameterOfType(MethodSE method, ClassSE<?> type) 指定された MethodSE に指定された型のパラメーターがあるかどうかを返します。 |
static boolean | hasProperty(ClassSE<?> type, StringSE property) 指定されたクラスに指定された名前のプロパティが含まれているかどうかを返します。 |
static boolean | isGenericRepositoryInterface(ClassSE<?> interfaze) 指定された型が Repository インターフェースである場合に戻ります。 |
static boolean | isGenericRepositoryInterface(StringSE interfaceName) 指定された型名がリポジトリインターフェース名であるかどうかを返します。 |
static boolean | isOfType(ObjectSE object, CollectionSE<ClassSE<?>> types) 指定されたオブジェクトが指定された型のいずれかであるかどうかを返します。 |
static void | unwrapReflectionException(ExceptionSE ex) リフレクション呼び出し中に発生する可能性のある元の例外を抽出するヘルパーメソッド。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static boolean hasProperty(ClassSE<?> type, StringSE property)
type -property -public static boolean isGenericRepositoryInterface(ClassSE<?> interfaze)
Repository インターフェースである場合に戻ります。interfaze -public static boolean isGenericRepositoryInterface(@Nullable StringSE interfaceName)
interfaceName -public static int getNumberOfOccurences(MethodSE method, ClassSE<?> type)
MethodSE のパラメーターで指定された型の出現箇所の数を返します。method -type -public static void assertReturnTypeAssignable(MethodSE method, ClassSE<?>... types)
MethodSE の戻り値の型が指定された型の 1 つであることを表明します。割り当てチェックの前に既知のラッパー型をアンラップします(QueryExecutionConverters を参照)。method - null であってはなりません。types - null または空であってはなりません。public static boolean isOfType(@Nullable ObjectSE object, CollectionSE<ClassSE<?>> types)
object -types -public static boolean hasParameterOfType(MethodSE method, ClassSE<?> type)
MethodSE に指定された型のパラメーターがあるかどうかを返します。method -type -public static void unwrapReflectionException(ExceptionSE ex) throws ThrowableSE
ex -ThrowableSECopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.