| java.lang.Object net.sourceforge.jrefactory.ast.SimpleNode net.sourceforge.jrefactory.ast.ASTImportDeclaration
ASTImportDeclaration | public class ASTImportDeclaration extends SimpleNode (Code) | | Stores an import declaration that appears at the beginning of a java file.
author: Mike Atkinson since: jRefactory 2.9.0, created October 16, 2003 |
Method Summary | |
public ASTName | getImportedNameNode() Gets the importedNameNode attribute of the ASTImportDeclaration node. | public boolean | isImportOnDemand() Gets the importOnDemand attribute of the ASTImportDeclaration node. | public boolean | isImportingPackage() | public boolean | isStaticImport() Return whether we are importing a the static from this package. | public Object | jjtAccept(JavaParserVisitor visitor, Object data) Accept the visitor.
Parameters: visitor - An implementation of JavaParserVisitor that processes the ASTImportDeclaration node. Parameters: data - Some data being passed between the visitor methods. | public void | setImportPackage(boolean way) | public void | setStaticImport(boolean isStatic) Set when including everything in a package. |
ASTImportDeclaration | public ASTImportDeclaration(int identifier)(Code) | | Constructor for the ASTImportDeclaration node.
Parameters: identifier - The id of this node (JJTIMPORTDECLARATION). |
ASTImportDeclaration | public ASTImportDeclaration(JavaParser parser, int identifier)(Code) | | Constructor for the ASTImportDeclaration node.
Parameters: parser - The JavaParser that created this ASTImportDeclaration node. Parameters: identifier - The id of this node (JJTIMPORTDECLARATION). |
getImportedNameNode | public ASTName getImportedNameNode()(Code) | | Gets the importedNameNode attribute of the ASTImportDeclaration node.
The name of the class or package being imported. |
isImportOnDemand | public boolean isImportOnDemand()(Code) | | Gets the importOnDemand attribute of the ASTImportDeclaration node.
true if the whole package was imported (with ".*;"). |
isImportingPackage | public boolean isImportingPackage()(Code) | | Return whether we are importing a package
true if the whole package is being imported (with ".*;"). |
isStaticImport | public boolean isStaticImport()(Code) | | Return whether we are importing a the static from this package. JDK 1.5
true if we are importing statics from the package since: JRefactory 2.7.00 |
jjtAccept | public Object jjtAccept(JavaParserVisitor visitor, Object data)(Code) | | Accept the visitor.
Parameters: visitor - An implementation of JavaParserVisitor that processes the ASTImportDeclaration node. Parameters: data - Some data being passed between the visitor methods. Usually the data parameter (possibly modified). |
setImportPackage | public void setImportPackage(boolean way)(Code) | | Set when including everything in a package
Parameters: way - true if we are importing the package. |
setStaticImport | public void setStaticImport(boolean isStatic)(Code) | | Set when including everything in a package. JDK 1.5 indicate that this is a static import.
Parameters: isStatic - true if we are importing statics from the package since: JRefactory 2.7.00 |
Methods inherited from net.sourceforge.jrefactory.ast.SimpleNode | public void addSpecial(String key, Token value)(Code)(Java Doc) public Object childrenAccept(JavaParserVisitor visitor, Object data)(Code)(Java Doc) public void dump(String prefix)(Code)(Java Doc) public String dumpString(String prefix)(Code)(Java Doc) public List findChildrenOfType(Class targetType)(Code)(Java Doc) public void findChildrenOfType(Class targetType, List results)(Code)(Java Doc) public void findChildrenOfType(Class targetType, List results, boolean descendIntoNestedClasses)(Code)(Java Doc) public int getBeginColumn()(Code)(Java Doc) public int getBeginLine()(Code)(Java Doc) public int getEndColumn()(Code)(Java Doc) public int getEndLine()(Code)(Java Doc) public String getImage()(Code)(Java Doc) public String getName()(Code)(Java Doc) public Scope getScope()(Code)(Java Doc) public Token getSpecial(String key)(Code)(Java Doc) public boolean hasAnyChildren()(Code)(Java Doc) protected void init()(Code)(Java Doc) public boolean isRequired()(Code)(Java Doc) public Object jjtAccept(JavaParserVisitor visitor, Object data)(Code)(Java Doc) public void jjtAddChild(Node n, int i)(Code)(Java Doc) public void jjtAddFirstChild(Node n)(Code)(Java Doc) public void jjtClose()(Code)(Java Doc) public void jjtDeleteChild(int i)(Code)(Java Doc) public Node jjtGetChild(int i)(Code)(Java Doc) public Node jjtGetFirstChild()(Code)(Java Doc) public int jjtGetID()(Code)(Java Doc) public int jjtGetNumChildren()(Code)(Java Doc) public Node jjtGetParent()(Code)(Java Doc) public void jjtInsertChild(Node n, int i)(Code)(Java Doc) public void jjtOpen()(Code)(Java Doc) public void jjtSetParent(Node n)(Code)(Java Doc) protected String printModifiers()(Code)(Java Doc) public void removeSpecial(String key)(Code)(Java Doc) public void setLineAndColumnInfo(int beginLine, int beginColumn, int endLine, int endColumn)(Code)(Java Doc) public void setScope(Scope scope)(Code)(Java Doc) public void testingOnly__setBeginColumn(int i)(Code)(Java Doc) public void testingOnly__setBeginLine(int i)(Code)(Java Doc) public String toString()(Code)(Java Doc) public String toString(String prefix)(Code)(Java Doc)
|
|
|