org.eclipse.emf.codegen.merge.java.facade.ast
Class ASTJImport
java.lang.Object
org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJImport
- All Implemented Interfaces:
- JImport, JNode
- public class ASTJImport
- extends ASTJNode
- implements JImport
- Since:
- 2.2.0
|
Constructor Summary |
ASTJImport(org.eclipse.jdt.core.dom.ImportDeclaration importDeclaration)
|
|
Method Summary |
protected org.eclipse.jdt.core.dom.ImportDeclaration |
getASTImportDeclaration()
|
int |
getFlags()
Returns the modifier flags for this node. |
String |
getName()
Returns the name of this node. |
boolean |
isOnDemand()
Returns whether this import declaration ends with ". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASTJImport
public ASTJImport(org.eclipse.jdt.core.dom.ImportDeclaration importDeclaration)
getASTImportDeclaration
protected org.eclipse.jdt.core.dom.ImportDeclaration getASTImportDeclaration()
isOnDemand
public boolean isOnDemand()
- Description copied from interface:
JImport
- Returns whether this import declaration ends with
".*".
- Specified by:
isOnDemand in interface JImport
- Returns:
true if this in an on-demand import
getName
public String getName()
- Description copied from interface:
JNode
- Returns the name of this node.
- Specified by:
getName in interface JNode
- Returns:
- the name, or
null if it has no name
getFlags
public int getFlags()
- Description copied from interface:
JNode
- Returns the modifier flags for this node. The flags can be examined using
class
FacadeFlags.
- Specified by:
getFlags in interface JNode- Overrides:
getFlags in class ASTJNode