|
Mirror API | |||||||||
| 前 次 | フレームあり フレームなし | |||||||||
| TypeMirror を使用しているパッケージ | |
|---|---|
| com.sun.mirror.declaration | プログラム要素の宣言をモデル化するために使用されるインタフェース。 |
| com.sun.mirror.type | 型をモデル化するために使用されるインタフェース。 |
| com.sun.mirror.util | 宣言と 型の処理を支援するユーティリティです。 |
| com.sun.mirror.declaration での TypeMirror の使用 |
|---|
| TypeMirror を返す com.sun.mirror.declaration のメソッド | |
|---|---|
TypeMirror |
MethodDeclaration.getReturnType()
このメソッドの形式戻り値の型を返します。 |
TypeMirror |
ParameterDeclaration.getType()
このパラメータの型を返します。 |
TypeMirror |
FieldDeclaration.getType()
このフィールドの型を返します。 |
| com.sun.mirror.type での TypeMirror の使用 |
|---|
| com.sun.mirror.type での TypeMirror のサブインタフェース | |
|---|---|
interface |
AnnotationType
注釈型を表します。 |
interface |
ArrayType
配列型を表します。 |
interface |
ClassType
クラス型を表します。 |
interface |
DeclaredType
宣言された型であるクラス型またはインタフェース型を表します。 |
interface |
EnumType
enum 型を表します。 |
interface |
InterfaceType
インタフェース型を表します。 |
interface |
PrimitiveType
プリミティブ型を表します。 |
interface |
ReferenceType
参照型を表します。 |
interface |
TypeVariable
型変数を表します。 |
interface |
VoidType
void の型を表す疑似型。 |
interface |
WildcardType
ワイルドカード型引数を表します。 |
| TypeMirror を返す com.sun.mirror.type のメソッド | |
|---|---|
TypeMirror |
ArrayType.getComponentType()
この配列型のコンポーネントの型を返します。 |
TypeMirror |
MirroredTypeException.getTypeMirror()
アクセスされる型に対応する型ミラーを返します。 |
| TypeMirror 型の引数を持つ型を返す com.sun.mirror.type のメソッド | |
|---|---|
Collection<TypeMirror> |
DeclaredType.getActualTypeArguments()
この型の実際の型引数を順に返します。 |
Collection<TypeMirror> |
MirroredTypesException.getTypeMirrors()
アクセスされる複数の型に対応する複数の型ミラーを返します。 |
| TypeMirror 型のパラメータを持つ com.sun.mirror.type のコンストラクタ | |
|---|---|
MirroredTypeException(TypeMirror type)
指定された型の新しい MirroredTypeException を構築します。 |
|
| Constructor parameters in com.sun.mirror.type with type arguments of type TypeMirror | |
|---|---|
MirroredTypesException(Collection<TypeMirror> types)
指定された型の新しい MirroredTypesException を構築します。 |
|
| com.sun.mirror.util での TypeMirror の使用 |
|---|
| TypeMirror を返す com.sun.mirror.util のメソッド | |
|---|---|
TypeMirror |
Types.getErasure(TypeMirror t)
型の消去を返します。 |
| TypeMirror 型のパラメータを持つ com.sun.mirror.util のメソッド | |
|---|---|
ArrayType |
Types.getArrayType(TypeMirror componentType)
指定されたコンポーネント型とともに配列型を返します。 |
DeclaredType |
Types.getDeclaredType(DeclaredType containing,
TypeDeclaration decl,
TypeMirror... typeArgs)
メンバである 包含型を指定すると、型宣言と実際の引数に対応する型を返します。 |
DeclaredType |
Types.getDeclaredType(TypeDeclaration decl,
TypeMirror... typeArgs)
型宣言と実際の型引数に対応する型を返します。 |
TypeMirror |
Types.getErasure(TypeMirror t)
型の消去を返します。 |
boolean |
Types.isAssignable(TypeMirror t1,
TypeMirror t2)
ある型を別の型に代入できるかどうかをテストします。 |
boolean |
Types.isSubtype(TypeMirror t1,
TypeMirror t2)
ある型が別の型のサブタイプであるかどうかをテストします。 |
void |
TypeVisitor.visitTypeMirror(TypeMirror t)
型のミラーをビジットします。 |
void |
SimpleTypeVisitor.visitTypeMirror(TypeMirror t)
型のミラーをビジットします。 |
|
Mirror API | |||||||||
| 前 次 | フレームあり フレームなし | |||||||||