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

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

Introduction

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

The text is from its open source code.

Field

ChildPropertyDescriptorNAME_PROPERTY
The "name" structural property of this node type (child type: Name ).
SimplePropertyDescriptorON_DEMAND_PROPERTY
The "onDemand" structural property of this node type (type: Boolean ).
SimplePropertyDescriptorSTATIC_PROPERTY
The "static" structural property of this node type (type: Boolean ) (added in JLS3 API).
booleanisStatic
Static versus regular; defaults to regular import.

Constructor

ImportDeclaration(AST ast)
Creates a new AST node for an import declaration owned by the given AST.

Method

voidaccept(ASTVisitor visitor)
Accepts the given visitor on a visit of the current node.
voiddelete()
Removes this node from its parent.
ASTgetAST()
Returns this node's AST.
intgetFlags()
Returns the flags associated with this node.
intgetLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.
NamegetName()
Returns the name imported by this 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.
booleanisOnDemand()
Returns whether this import declaration is an on-demand or a single-type import.
IBindingresolveBinding()
Resolves and returns the binding for the package, type, field, or method named in this import declaration.
voidsetFlags(int flags)
Sets the flags associated with this node to the given value.
voidsetName(Name name)
Sets the name of this import declaration to the given name.
voidsetOnDemand(boolean onDemand)
Sets whether this import declaration is an on-demand or a single-type import.
voidsetSourceRange(int startPosition, int length)
Sets the source range of the original source file where the source fragment corresponding to this node was found.
voidsetStatic(boolean isStatic)
Sets whether this import declaration is a static import (added in JLS3 API).
StringtoString()
Returns a string representation of this node suitable for debugging purposes only.