T - メソッドを宣言するクラス public interface AnnotatedMethodConfigurator<T>AnnotatedTypeConfigurator SPI の一部であり、AnnotatedMethod の定義に役立ちます | 修飾子と型 | メソッドと説明 |
|---|---|
AnnotatedMethodConfigurator<T> | add(AnnotationSE annotation) メソッドにアノテーションを追加します。 |
default StreamSE<AnnotatedParameterConfigurator<T>> | filterParams(PredicateSE<AnnotatedParameter<T>> predicate) |
AnnotatedMethod<T> | getAnnotated() |
ListSE<AnnotatedParameterConfigurator<T>> | params() |
AnnotatedMethodConfigurator<T> | remove(PredicateSE<AnnotationSE> predicate) 指定された述語に一致するアノテーションを削除します。 |
default AnnotatedMethodConfigurator<T> | removeAll() すべてのアノテーションを削除します。 |
AnnotatedMethod<T> getAnnotated()
AnnotatedMethodAnnotatedMethodConfigurator<T> add(AnnotationSE annotation)
annotation - 追加するアノテーション AnnotatedMethodConfigurator<T> remove(PredicateSE<AnnotationSE> predicate)
述語の例:
// To remove all the annotations:
(a) -> true
// To remove annotations with a concrete annotation type:
(a) -> a.annotationType().equals(Foo.class)
// To remove annotation equal to a specified object:
(a) -> a.equals(fooAnnotation)
// To remove annotations that are considered equivalent for the purposes of typesafe resolution:
(a) -> beanManager.areQualifiersEquivalent(a, fooQualifier)
(a) -> beanManager.areInterceptorBindingsEquivalent(a, fooInterceptorBinding)
predicate - 削除するアノテーションのフィルタリングに使用される PredicateSEdefault AnnotatedMethodConfigurator<T> removeAll()
ListSE<AnnotatedParameterConfigurator<T>> params()
AnnotatedCallable.getParameters() を反映する AnnotatedParameterConfigurator の不変リスト default StreamSE<AnnotatedParameterConfigurator<T>> filterParams(PredicateSE<AnnotatedParameter<T>> predicate)
predicate - 元の AnnotatedParameter のテスト AnnotatedParameterConfigurator のシーケンス AnnotatedParameterConfigurator.getAnnotated()Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.