Java org.eclipse.jdt.core.dom TypeDeclaration fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom TypeDeclaration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom TypeDeclaration.

The text is from its open source code.

Field

ChildPropertyDescriptorJAVADOC_PROPERTY
The "javadoc" structural property of this node type (child type: Javadoc ).
ChildListPropertyDescriptorMODIFIERS2_PROPERTY
The "modifiers" structural property of this node type (element type: IExtendedModifier ) (added in JLS3 API).
SimplePropertyDescriptorINTERFACE_PROPERTY
The "interface" structural property of this node type (type: Boolean ).
ChildPropertyDescriptorNAME_PROPERTY
The "name" structural property of this node type (child type: SimpleName ).
ChildPropertyDescriptorSUPERCLASS_TYPE_PROPERTY
The "superclassType" structural property of this node type (child type: Type ) (added in JLS3 API).
ChildListPropertyDescriptorSUPER_INTERFACE_TYPES_PROPERTY
The "superInterfaceTypes" structural property of this node type (element type: Type ) (added in JLS3 API).
ChildListPropertyDescriptorTYPE_PARAMETERS_PROPERTY
The "typeParameters" structural property of this node type (element type: TypeParameter ) (added in JLS3 API).
ChildListPropertyDescriptorBODY_DECLARATIONS_PROPERTY
The "bodyDeclarations" structural property of this node type (element type: BodyDeclaration ) (added in JLS3 API).
booleanisInterface
true for an interface, false for a class.
ASTNode.NodeListtypeParameters
The type parameters (element type: TypeParameter ).
ASTNode.NodeListsuperInterfaceTypes
The superinterface types (element type: Type ).

Constructor

TypeDeclaration(AST ast)
Creates a new AST node for a type declaration owned by the given AST.

Method

ListbodyDeclarations()
Returns the live ordered list of body declarations of this type declaration.
ChildListPropertyDescriptorgetBodyDeclarationsProperty()
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.
SimpleNamegetName()
Returns the name of the type declared in this type declaration.
NamegetSuperclass()
Returns the name of the superclass declared in this type declaration, or null if there is none (JLS2 API only).
TypegetSuperclassType()
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.
voidinternalSetSuperclass(Name superclassName)
Internal synonym for deprecated method.
ListinternalSuperInterfaces()
Internal synonym for deprecated method.
booleanisLocalTypeDeclaration()
Returns whether this type declaration is a local type.
booleanisMemberTypeDeclaration()
Returns whether this type declaration is a type member.
booleanisPackageMemberTypeDeclaration()
Returns whether this type declaration is a package member (that is, a top-level type).
ITypeBindingresolveBinding()
Resolves and returns the binding for the type declared in this type declaration.
voidsetInterface(boolean isInterface)
Sets whether this type declaration declares a class or an interface.
voidsetName(SimpleName typeName)
Sets the name of the type declared in this type declaration to the given name.
voidsetSuperclass(Name superclassName)
Sets or clears the name of the superclass declared in this type declaration (JLS2 API only).
voidsetSuperclassType(Type superclassType)
Sets or clears the superclass declared in this type declaration (added in JLS3 API).
ListsuperInterfaces()
Returns the live ordered list of names of superinterfaces of this type declaration (JLS2 API only).