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

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

Introduction

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

The text is from its open source code.

Field

ChildPropertyDescriptorNAME_PROPERTY
The "name" structural property of this node type (child type: Name ).
ASTNode.NodeListannotations
The annotations (element type: Annotation ).

Constructor

PackageDeclaration(AST ast)
Creates a new AST node for a package declaration owned by the given AST.

Method

voidaccept(ASTVisitor visitor)
Accepts the given visitor on a visit of the current node.
ASTgetAST()
Returns this node's AST.
intgetFlags()
Returns the flags associated with this node.
JavadocgetJavadoc()
Returns the doc comment node (added in JLS3 API).
intgetLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.
NamegetName()
Returns the package name of this package declaration.
ASTNodegetParent()
Returns this node's parent node, or null if this is the root node.
intgetStartPosition()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins.
IPackageBindingresolveBinding()
Resolves and returns the binding for the package declared in this package declaration.
voidsetFlags(int flags)
Sets the flags associated with this node to the given value.
voidsetJavadoc(Javadoc docComment)
Sets or clears the doc comment node (added in JLS3 API).
voidsetName(Name name)
Sets the package name of this package declaration to the given name.
voidsetSourceRange(int startPosition, int length)
Sets the source range of the original source file where the source fragment corresponding to this node was found.
StringtoString()
Returns a string representation of this node suitable for debugging purposes only.