public abstract class ImportDeclaration extends Node
This class is a base class for classes representing import declarations. Imports are optional for the
CompilationUnit
.
An EmptyImportDeclaration is simply a semicolon among the import declarations.ImportDeclaration ::= "import" ( "static" )?
NameExpr
( "." "*" )? ";"
Node.ObserverRegistrationMode
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor and Description |
---|
ImportDeclaration(Range range) |
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBegin, getChildNodes, getComment, getData, getEnd, getNodeLists, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
finalize, getClass, notify, notifyAll, wait, wait, wait
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
public ImportDeclaration(Range range)
Copyright © 2007–2016. All rights reserved.