Example usage for Java org.eclipse.jdt.core.dom TypeDeclaration fields, constructors, methods, implement or subclass
The text is from its open source code.
ChildPropertyDescriptor | JAVADOC_PROPERTY The "javadoc" structural property of this node type (child type: Javadoc ). |
ChildListPropertyDescriptor | MODIFIERS2_PROPERTY The "modifiers" structural property of this node type (element type: IExtendedModifier ) (added in JLS3 API). |
SimplePropertyDescriptor | INTERFACE_PROPERTY The "interface" structural property of this node type (type: Boolean ). |
ChildPropertyDescriptor | NAME_PROPERTY The "name" structural property of this node type (child type: SimpleName ). |
ChildPropertyDescriptor | SUPERCLASS_TYPE_PROPERTY The "superclassType" structural property of this node type (child type: Type ) (added in JLS3 API). |
ChildListPropertyDescriptor | SUPER_INTERFACE_TYPES_PROPERTY The "superInterfaceTypes" structural property of this node type (element type: Type ) (added in JLS3 API). |
ChildListPropertyDescriptor | TYPE_PARAMETERS_PROPERTY The "typeParameters" structural property of this node type (element type: TypeParameter ) (added in JLS3 API). |
ChildListPropertyDescriptor | BODY_DECLARATIONS_PROPERTY The "bodyDeclarations" structural property of this node type (element type: BodyDeclaration ) (added in JLS3 API). |
boolean | isInterfacetrue for an interface, false for a class. |
ASTNode.NodeList | typeParameters The type parameters (element type: TypeParameter ). |
ASTNode.NodeList | superInterfaceTypes The superinterface types (element type: Type ). |
TypeDeclaration(AST ast) Creates a new AST node for a type declaration owned by the given AST. |
List | bodyDeclarations() Returns the live ordered list of body declarations of this type declaration. |
ChildListPropertyDescriptor | getBodyDeclarationsProperty() Returns structural property descriptor for the "bodyDeclarations" property of this node (element type: BodyDeclaration ). |
FieldDeclaration[] | getFields() Returns the ordered list of field declarations of this type declaration. |
MethodDeclaration[] | getMethods() Returns the ordered list of method declarations of this type declaration. |
SimpleName | getName() Returns the name of the type declared in this type declaration. |
Name | getSuperclass() Returns the name of the superclass declared in this type declaration, or null if there is none (JLS2 API only). |
Type | getSuperclassType() Returns the superclass declared in this type declaration, or null if there is none (added in JLS3 API). |
TypeDeclaration[] | getTypes() Returns the ordered list of member type declarations of this type declaration. |
void | internalSetSuperclass(Name superclassName) Internal synonym for deprecated method. |
List | internalSuperInterfaces() Internal synonym for deprecated method. |
boolean | isLocalTypeDeclaration() Returns whether this type declaration is a local type. |
boolean | isMemberTypeDeclaration() Returns whether this type declaration is a type member. |
boolean | isPackageMemberTypeDeclaration() Returns whether this type declaration is a package member (that is, a top-level type). |
ITypeBinding | resolveBinding() Resolves and returns the binding for the type declared in this type declaration. |
void | setInterface(boolean isInterface) Sets whether this type declaration declares a class or an interface. |
void | setName(SimpleName typeName) Sets the name of the type declared in this type declaration to the given name. |
void | setSuperclass(Name superclassName) Sets or clears the name of the superclass declared in this type declaration (JLS2 API only). |
void | setSuperclassType(Type superclassType) Sets or clears the superclass declared in this type declaration (added in JLS3 API). |
List | superInterfaces() Returns the live ordered list of names of superinterfaces of this type declaration (JLS2 API only). |