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.WildcardTreeImpl
grammarRuleKey
Constructor and Description |
---|
CompilationUnitTreeImpl(PackageDeclarationTree packageDeclaration,
List<ImportClauseTree> imports,
List<Tree> types,
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() |
PackageDeclarationTree |
packageDeclaration() |
List<Tree> |
types() |
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
firstToken, is, lastToken, parent
public CompilationUnitTreeImpl(@Nullable PackageDeclarationTree packageDeclaration, List<ImportClauseTree> imports, List<Tree> types, SyntaxToken eofToken)
public List<ImportClauseTree> imports()
imports
in interface CompilationUnitTree
public List<Tree> types()
types
in interface CompilationUnitTree
public void accept(TreeVisitor visitor)
public Iterable<Tree> children()
JavaTree
null
elements.@Nullable public PackageDeclarationTree packageDeclaration()
packageDeclaration
in interface CompilationUnitTree
public SyntaxToken eofToken()
eofToken
in interface CompilationUnitTree
Copyright © 2012–2017 SonarSource. All rights reserved.