类 ReflectionHintsPredicates
java.lang.Object
cn.taketoday.aot.hint.predicate.ReflectionHintsPredicates
Generator of
ReflectionHints predicates, testing whether the given hints
match the expected behavior for reflection.- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Stephane Nicoll
-
嵌套类概要
嵌套类修饰符和类型类说明static classstatic classstatic classstatic classstatic class -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private MethodonConstructor(Constructor<?> constructor) Return a predicate that checks whether a reflection hint is registered for the given constructor.Return a predicate that checks whether a reflection hint is registered for the field that matches the given selector.Return a predicate that checks whether a reflection hint is registered for the given field.Return a predicate that checks whether a reflection hint is registered for the field that matches the given selector.Return a predicate that checks whether a reflection hint is registered for the method that matches the given selector.Return a predicate that checks whether a reflection hint is registered for the given method.Return a predicate that checks whether a reflection hint is registered for the method that matches the given selector.onType(TypeReference typeReference) Return a predicate that checks whether a reflection hint is registered for the given type.Return a predicate that checks whether a reflection hint is registered for the given type.
-
构造器详细资料
-
ReflectionHintsPredicates
ReflectionHintsPredicates()
-
-
方法详细资料
-
onType
Return a predicate that checks whether a reflection hint is registered for the given type.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
typeReference- the type- 返回:
- the
RuntimeHintspredicate
-
onType
Return a predicate that checks whether a reflection hint is registered for the given type.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
type- the type- 返回:
- the
RuntimeHintspredicate
-
onConstructor
Return a predicate that checks whether a reflection hint is registered for the given constructor. By default, both introspection and invocation hints match.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
constructor- the constructor- 返回:
- the
RuntimeHintspredicate
-
onMethod
Return a predicate that checks whether a reflection hint is registered for the given method. By default, both introspection and invocation hints match.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
method- the method- 返回:
- the
RuntimeHintspredicate
-
onMethod
Return a predicate that checks whether a reflection hint is registered for the method that matches the given selector. This looks up a method on the given type with the expected name, if unique. By default, both introspection and invocation hints match.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
type- the type holding the methodmethodName- the method name- 返回:
- the
RuntimeHintspredicate - 抛出:
IllegalArgumentException- if the method cannot be found or if multiple methods are found with the same name.
-
onMethod
public ReflectionHintsPredicates.MethodHintPredicate onMethod(String className, String methodName) throws ClassNotFoundException Return a predicate that checks whether a reflection hint is registered for the method that matches the given selector. This looks up a method on the given type with the expected name, if unique. By default, both introspection and invocation hints match.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
className- the name of the class holding the methodmethodName- the method name- 返回:
- the
RuntimeHintspredicate - 抛出:
ClassNotFoundException- if the class cannot be resolved.IllegalArgumentException- if the method cannot be found or if multiple methods are found with the same name.
-
getMethod
-
onField
Return a predicate that checks whether a reflection hint is registered for the field that matches the given selector. This looks up a field on the given type with the expected name, if present. By default, unsafe or write access is not considered.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
type- the type holding the fieldfieldName- the field name- 返回:
- the
RuntimeHintspredicate - 抛出:
IllegalArgumentException- if a field cannot be found with the given name.
-
onField
public ReflectionHintsPredicates.FieldHintPredicate onField(String className, String fieldName) throws ClassNotFoundException Return a predicate that checks whether a reflection hint is registered for the field that matches the given selector. This looks up a field on the given type with the expected name, if present. By default, unsafe or write access is not considered.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
className- the name of the class holding the fieldfieldName- the field name- 返回:
- the
RuntimeHintspredicate - 抛出:
ClassNotFoundException- if the class cannot be resolved.IllegalArgumentException- if a field cannot be found with the given name.
-
onField
Return a predicate that checks whether a reflection hint is registered for the given field. By default, unsafe or write access is not considered.The returned type exposes additional methods that refine the predicate behavior.
- 参数:
field- the field- 返回:
- the
RuntimeHintspredicate
-