| Modifier and Type | Field and Description |
|---|---|
static Role<ImportDeclaration> |
IMPORT_ROLE |
static Role<AstNode> |
MEMBER_ROLE |
AST_NODE_USED_FLAGS, flags, NULLCHILD_ITERATOR| Constructor and Description |
|---|
CompilationUnit() |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
java.lang.String |
getFileName() |
AstNodeCollection<ImportDeclaration> |
getImports() |
AstNodeCollection<AstNode> |
getMembers() |
NodeType |
getNodeType() |
PackageDeclaration |
getPackage() |
AstNode |
getTopExpression() |
java.lang.Iterable<TypeDeclaration> |
getTypes() |
java.lang.Iterable<TypeDeclaration> |
getTypes(boolean includeInnerTypes) |
boolean |
matches(INode other,
Match match) |
void |
setFileName(java.lang.String fileName) |
void |
setPackage(PackageDeclaration value) |
addChild, clone, contains, contains, copyUserDataFrom, forPattern, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, toStringpublic static final Role<ImportDeclaration> IMPORT_ROLE
public final AstNodeCollection<ImportDeclaration> getImports()
public final PackageDeclaration getPackage()
public final void setPackage(PackageDeclaration value)
public final java.lang.String getFileName()
public final void setFileName(java.lang.String fileName)
public final AstNode getTopExpression()
public final AstNodeCollection<AstNode> getMembers()
public NodeType getNodeType()
getNodeType in class AstNodepublic <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNodepublic java.lang.Iterable<TypeDeclaration> getTypes()
public java.lang.Iterable<TypeDeclaration> getTypes(boolean includeInnerTypes)