public static class JavaTree.CompilationUnitTreeImpl extends JavaTree implements CompilationUnitTree
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImplgrammarRuleKey| Constructor and Description |
|---|
CompilationUnitTreeImpl(PackageDeclarationTree packageDeclaration,
List<ImportClauseTree> imports,
List<Tree> types,
ModuleDeclarationTree moduleDeclaration,
SyntaxToken eofToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeVisitor visitor) |
Iterable<Tree> |
children()
Creates iterable for children of this node.
|
SyntaxToken |
eofToken() |
List<ImportClauseTree> |
imports() |
Tree.Kind |
kind() |
ModuleDeclarationTree |
moduleDeclaration()
Experimental feature allowing retrieval of java 9 module declaration from 'module-info.java' files.
|
PackageDeclarationTree |
packageDeclaration() |
List<Tree> |
types() |
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfirstToken, is, lastToken, parentpublic CompilationUnitTreeImpl(@Nullable PackageDeclarationTree packageDeclaration, List<ImportClauseTree> imports, List<Tree> types, @Nullable ModuleDeclarationTree moduleDeclaration, SyntaxToken eofToken)
public List<ImportClauseTree> imports()
imports in interface CompilationUnitTreepublic List<Tree> types()
types in interface CompilationUnitTreepublic void accept(TreeVisitor visitor)
public Iterable<Tree> children()
JavaTreenull elements.@Nullable public PackageDeclarationTree packageDeclaration()
packageDeclaration in interface CompilationUnitTree@Nullable public ModuleDeclarationTree moduleDeclaration()
CompilationUnitTreemoduleDeclaration in interface CompilationUnitTreepublic SyntaxToken eofToken()
eofToken in interface CompilationUnitTreeCopyright © 2012–2017 SonarSource. All rights reserved.