TypeElement
に含まれます。@Deprecated public interface ClassDeclaration extends TypeDeclaration
InterfaceDeclaration
を参照してください。クラス、そのメンバー、およびそのコンストラクタに関する情報へのアクセスを提供します。列挙型はクラスの一種です。
ClassDeclaration がクラスの宣言を表すのに対して、ClassType
はクラス型を表します。この区別の詳細は、TypeDeclaration
を参照してください。
DeclarationFilter
は、メソッドが宣言のコレクションを返すときに必要な項目だけを簡単に選択する方法を提供します。
ClassType
修飾子と型 | メソッドと説明 |
---|---|
Collection<ConstructorDeclaration> |
getConstructors()
非推奨。
このクラスのコンストラクタを返します。
|
Collection<MethodDeclaration> |
getMethods()
非推奨。
このクラスまたはインタフェースにより直接宣言されたメソッドを返します。
|
ClassType |
getSuperclass()
非推奨。
このクラスにより直接拡張されたクラス型を返します。
|
getFields, getFormalTypeParameters, getNestedTypes, getPackage, getQualifiedName, getSuperinterfaces
getDeclaringType
accept, equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
ClassType getSuperclass()
Collection<ConstructorDeclaration> getConstructors()
DeclarationFilter
Collection<MethodDeclaration> getMethods()
getMethods
、インタフェース: TypeDeclaration
DeclarationFilter
Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved.