Example usage for Java org.eclipse.jdt.core.dom ImportDeclaration 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 ). |
SimplePropertyDescriptor | ON_DEMAND_PROPERTY The "onDemand" structural property of this node type (type: Boolean ). |
SimplePropertyDescriptor | STATIC_PROPERTY The "static" structural property of this node type (type: Boolean ) (added in JLS3 API). |
boolean | isStatic Static versus regular; defaults to regular import. |
ImportDeclaration(AST ast) Creates a new AST node for an import declaration owned by the given AST. |
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
void | delete() Removes this node from its parent. |
AST | getAST() Returns this node's AST. |
int | getFlags() Returns the flags associated with this node. |
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 name imported by this 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. |
boolean | isOnDemand() Returns whether this import declaration is an on-demand or a single-type import. |
IBinding | resolveBinding() Resolves and returns the binding for the package, type, field, or method named in this import declaration. |
void | setFlags(int flags) Sets the flags associated with this node to the given value. |
void | setName(Name name) Sets the name of this import declaration to the given name. |
void | setOnDemand(boolean onDemand) Sets whether this import declaration is an on-demand or a single-type import. |
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. |
void | setStatic(boolean isStatic) Sets whether this import declaration is a static import (added in JLS3 API). |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |