|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jeffpalm.javaparser.SimpleNode
com.jeffpalm.javaparser.ASTImportDeclaration
public class ASTImportDeclaration
Stores an import declaration that appears at the beginning of a java file.
Field Summary |
---|
Fields inherited from class com.jeffpalm.javaparser.SimpleNode |
---|
children, id, parent, parser, specials |
Constructor Summary | |
---|---|
ASTImportDeclaration(int identifier)
Constructor for the ASTImportDeclaration node. |
|
ASTImportDeclaration(JavaParser parser,
int identifier)
Constructor for the ASTImportDeclaration node. |
Method Summary | |
---|---|
ASTName |
getImportedNameNode()
Gets the importedNameNode attribute of the ASTImportDeclaration node. |
boolean |
isImportingPackage()
Return whether we are importing a package |
boolean |
isImportOnDemand()
Gets the importOnDemand attribute of the ASTImportDeclaration node. |
boolean |
isStaticImport()
Return whether we are importing a the static from this package. |
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
void |
setImportPackage(boolean way)
Set when including everything in a package |
void |
setStaticImport(boolean isStatic)
Set when including everything in a package. |
Methods inherited from class com.jeffpalm.javaparser.SimpleNode |
---|
addSpecial, childrenAccept, dump, dumpString, findChildrenOfType, findChildrenOfType, findChildrenOfType, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getName, getScope, getSpecial, hasAnyChildren, init, isRequired, jjtAddChild, jjtAddFirstChild, jjtClose, jjtDeleteChild, jjtGetChild, jjtGetFirstChild, jjtGetID, jjtGetNumChildren, jjtGetParent, jjtInsertChild, jjtOpen, jjtSetParent, printModifiers, removeSpecial, setLineAndColumnInfo, setScope, testingOnly__setBeginColumn, testingOnly__setBeginLine, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASTImportDeclaration(int identifier)
identifier
- The id of this node (JJTIMPORTDECLARATION).public ASTImportDeclaration(JavaParser parser, int identifier)
parser
- The JavaParser that created this ASTImportDeclaration node.identifier
- The id of this node (JJTIMPORTDECLARATION).Method Detail |
---|
public void setImportPackage(boolean way)
way
- true
if we are importing the package.public void setStaticImport(boolean isStatic)
isStatic
- true
if we are importing statics from the packagepublic boolean isImportingPackage()
true
if the whole package is being imported (with ".*;").public boolean isStaticImport()
true
if we are importing statics from the packagepublic boolean isImportOnDemand()
true
if the whole package was imported (with ".*;").public ASTName getImportedNameNode()
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
visitor
- An implementation of JavaParserVisitor that processes the ASTImportDeclaration node.data
- Some data being passed between the visitor methods.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |