Mirror API

com.sun.mirror.declaration
インタフェース MemberDeclaration

すべてのスーパーインタフェース:
Declaration
既知のサブインタフェースの一覧:
AnnotationTypeDeclaration, AnnotationTypeElementDeclaration, ClassDeclaration, ConstructorDeclaration, EnumConstantDeclaration, EnumDeclaration, ExecutableDeclaration, FieldDeclaration, InterfaceDeclaration, MethodDeclaration, TypeDeclaration

public interface MemberDeclaration
extends Declaration

宣言された型のメンバーまたはコンストラクタである可能性がある宣言を表します。この宣言には、フィールド、コンストラクタ、メソッド、および、宣言された型自身 (入れ子になっている可能性があるため) が含まれます。

導入されたバージョン:
1.5

メソッドの概要
 TypeDeclaration getDeclaringType()
          このメンバーまたはコンストラクタが内部で宣言された型宣言を返します。
 
インタフェース com.sun.mirror.declaration.Declaration から継承されたメソッド
accept, equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
 

メソッドの詳細

getDeclaringType

TypeDeclaration getDeclaringType()
このメンバーまたはコンストラクタが内部で宣言された型宣言を返します。この宣言がトップレベルの型 (入れ子になったクラスまたはインタフェース) の宣言である場合は null を返します。

戻り値:
このメンバーまたはコンストラクタが内部で宣言された型宣言、ない場合は null

Mirror API

バグや機能要求の報告
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.