T
- コンストラクターを宣言するクラス public interface AnnotatedConstructorConfigurator<T>
AnnotatedTypeConfigurator
SPI の一部であり、AnnotatedConstructor
の定義に役立ちます 修飾子と型 | メソッドと説明 |
---|---|
AnnotatedConstructorConfigurator<T> | add(AnnotationSE annotation) コンストラクターにアノテーションを追加します。 |
default StreamSE<AnnotatedParameterConfigurator<T>> | filterParams(PredicateSE<AnnotatedParameter<T>> predicate) |
AnnotatedConstructor<T> | getAnnotated() |
ListSE<AnnotatedParameterConfigurator<T>> | params() |
AnnotatedConstructorConfigurator<T> | remove(PredicateSE<AnnotationSE> predicate) 指定された述語に一致するアノテーションを削除します。 |
default AnnotatedConstructorConfigurator<T> | removeAll() すべてのアノテーションを削除します。 |
AnnotatedConstructor<T> getAnnotated()
AnnotatedConstructor
AnnotatedConstructorConfigurator<T> add(AnnotationSE annotation)
annotation
- 追加するアノテーション AnnotatedConstructorConfigurator<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
- 削除するアノテーションのフィルタリングに使用される Predicate
SEdefault AnnotatedConstructorConfigurator<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.