|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface GenericContext
型変数のコンテキスト。
| メソッドの概要 | |
|---|---|
GenericContextStrategy |
erase()
適用できなかった際にイレイジャを利用する戦略を返す。 |
CtGenericReference |
getOwner()
このコンテキストを実際に保持するオーナーを返す。 |
CtType<?> |
getTypeArgument(CtTypeParameter<?> parameter)
このコンテキストで適用された型引数の実際の型を返す。 |
CtTypeParameter<?> |
getTypeParameter(String name)
このコンテキストで利用可能な指定の名前を持つ型引数を返す。 |
GenericContextStrategy |
ignore()
適用できなかった際に自身(の参照)を利用する戦略を返す。 |
GenericContextStrategy |
strict()
適用できなかった際に IllegalGenericContextExceptionをスローする戦略を返す。 |
| メソッドの詳細 |
|---|
CtGenericReference getOwner()
nullを返す場合がある。
nullCtTypeParameter<?> getTypeParameter(String name)
name - 対象の型引数の名前
nullCtType<?> getTypeArgument(CtTypeParameter<?> parameter)
nullを返す。
parameter - 型引数
null
NullPointerException - 引数にnullが含まれていた場合GenericContextStrategy erase()
GenericContextStrategy ignore()
GenericContextStrategy strict()
IllegalGenericContextExceptionをスローする戦略を返す。
IllegalGenericContextExceptionをスローする戦略を返す。
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||