public class InjectionPoint
extends java.lang.ObjectUnsatisfiedDependencyException によって公開されました。UnsatisfiedDependencyException.getInjectionPoint(), DependencyDescriptor| 修飾子と型 | フィールドと説明 |
|---|---|
protected java.lang.reflect.Field | field |
protected MethodParameter | methodParameter |
| 修飾子 | コンストラクターと説明 |
|---|---|
protected | InjectionPoint() サブクラスでの直列化の目的でのみ使用できます。 |
| InjectionPoint(java.lang.reflect.Field field) フィールドのインジェクションポイント記述子を作成します。 |
protected | InjectionPoint(InjectionPoint original) コピーコンストラクター。 |
| InjectionPoint(MethodParameter methodParameter) メソッドまたはコンストラクターパラメーターのインジェクションポイント記述子を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | equals(java.lang.Object other) |
java.lang.reflect.AnnotatedElement | getAnnotatedElement() ラップされたアノテーション付き要素を返します。 |
<A extends java.lang.annotation.Annotation> | getAnnotation(java.lang.Class<A> annotationType) 指定された型のフィールド / パラメーターアノテーションがあれば、それを取得します。 |
java.lang.annotation.Annotation[] | getAnnotations() ラップされたフィールドまたはメソッド / コンストラクターパラメーターに関連付けられたアノテーションを取得します。 |
java.lang.Class<?> | getDeclaredType() 基になるフィールドまたはメソッド / コンストラクターパラメーターによって宣言された型を返し、注入の型を示します。 |
java.lang.reflect.Field | getField() ラップされたフィールドがあれば返します。 |
java.lang.reflect.Member | getMember() インジェクションポイントを含む、ラップされたメンバーを返します。 |
MethodParameter | getMethodParameter() ラップされた MethodParameter があれば、それを返します。 |
int | hashCode() |
protected MethodParameter | obtainMethodParameter() 存在する場合、ラップされた MethodParameter を返します。 |
java.lang.String | toString() |
@Nullable protected MethodParameter methodParameter
@Nullable protected java.lang.reflect.Field field
public InjectionPoint(MethodParameter methodParameter)
methodParameter - ラップする MethodParameterpublic InjectionPoint(java.lang.reflect.Field field)
field - ラップするフィールド protected InjectionPoint(InjectionPoint original)
original - コピーを作成する元の記述子 protected InjectionPoint()
@Nullable public MethodParameter getMethodParameter()
メモ: MethodParameter またはフィールドのいずれかを使用できます。
null @Nullable public java.lang.reflect.Field getField()
メモ: MethodParameter またはフィールドのいずれかを使用できます。
null protected final MethodParameter obtainMethodParameter()
null)java.lang.IllegalStateException - MethodParameter が利用できない場合 public java.lang.annotation.Annotation[] getAnnotations()
@Nullable public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
annotationType - 取得するアノテーション型 null public java.lang.Class<?> getDeclaredType()
public java.lang.reflect.Member getMember()
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
メモ: メソッド / コンストラクターパラメーターの場合、これはメソッドまたはコンストラクター自体で宣言されたアノテーションを公開します(つまり、パラメーターレベルではなく、メソッド / コンストラクターレベルで)。getAnnotations() を使用して、このようなシナリオでパラメーターレベルのアノテーションを取得し、対応するフィールドのアノテーションを透過的に使用します。
public boolean equals(java.lang.Object other)
java.lang.Object の equals public int hashCode()
java.lang.Object の hashCode public java.lang.String toString()
java.lang.Object の toString