public static class JavaTree.CompilationUnitTreeImpl extends JavaTree implements CompilationUnitTree
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl| Constructor and Description |
|---|
JavaTree.CompilationUnitTreeImpl(ExpressionTree packageName,
List<ImportTree> imports,
List<Tree> types,
List<AnnotationTree> packageAnnotations,
List<com.sonar.sslr.api.AstNode> children) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeVisitor visitor) |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
Tree.Kind |
getKind() |
List<ImportTree> |
imports() |
List<AnnotationTree> |
packageAnnotations() |
ExpressionTree |
packageName() |
String |
packageNameAsString() |
List<Tree> |
types() |
addChild, getAstNode, getLine, is, isLeaf, isLegacy, prependChildren, prependChildrenfindChildren, findDirectChildren, findFirstChild, findFirstDirectChild, findFirstParent, getChild, getChildren, getChildren, getDescendants, getFirstAncestor, getFirstAncestor, getFirstChild, getFirstChild, getFirstDescendant, getFromIndex, getLastChild, getLastChild, getLastToken, getName, getNextAstNode, getNextSibling, getNumberOfChildren, getParent, getPreviousAstNode, getPreviousSibling, getToIndex, getToken, getTokenLine, getTokenOriginalValue, getTokens, getTokenValue, getType, hasAncestor, hasAncestor, hasChildren, hasChildren, hasDescendant, hasDirectChildren, hasParent, hasParents, hasToBeSkippedFromAst, hasToken, is, isCopyBookOrGeneratedNode, isNot, nextAstNode, nextSibling, previousAstNode, previousSibling, select, setFromIndex, setToIndex, toStringpublic JavaTree.CompilationUnitTreeImpl(@Nullable ExpressionTree packageName, List<ImportTree> imports, List<Tree> types, List<AnnotationTree> packageAnnotations, List<com.sonar.sslr.api.AstNode> children)
public List<AnnotationTree> packageAnnotations()
packageAnnotations in interface CompilationUnitTree@Nullable public ExpressionTree packageName()
packageName in interface CompilationUnitTreepublic List<ImportTree> imports()
imports in interface CompilationUnitTreepublic List<Tree> types()
types in interface CompilationUnitTreepublic void accept(TreeVisitor visitor)
public Iterator<Tree> childrenIterator()
JavaTreenull elements.childrenIterator in class JavaTreepublic String packageNameAsString()
Copyright © 2012–2015 SonarSource. All rights reserved.