Example usage for Java org.eclipse.jdt.core.dom PackageDeclaration fields, constructors, methods, implement or subclass
The text is from its open source code.
ChildPropertyDescriptor | NAME_PROPERTY The "name" structural property of this node type (child type: Name ). |
ASTNode.NodeList | annotations The annotations (element type: Annotation ). |
PackageDeclaration(AST ast) Creates a new AST node for a package declaration owned by the given AST. |
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
AST | getAST() Returns this node's AST. |
int | getFlags() Returns the flags associated with this node. |
Javadoc | getJavadoc() Returns the doc comment node (added in JLS3 API). |
int | getLength() Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
Name | getName() Returns the package name of this package declaration. |
ASTNode | getParent() Returns this node's parent node, or null if this is the root node. |
int | getStartPosition() Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
IPackageBinding | resolveBinding() Resolves and returns the binding for the package declared in this package declaration. |
void | setFlags(int flags) Sets the flags associated with this node to the given value. |
void | setJavadoc(Javadoc docComment) Sets or clears the doc comment node (added in JLS3 API). |
void | setName(Name name) Sets the package name of this package declaration to the given name. |
void | setSourceRange(int startPosition, int length) Sets the source range of the original source file where the source fragment corresponding to this node was found. |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |