Package org.sonar.python.tree
Class FileInputImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.FileInputImpl
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description FileInputImpl(StatementList statements, Token endOfFile, StringLiteral docstring)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)voidaddGlobalVariables(Symbol globalVariable)List<Tree>computeChildren()StringLiteraldocstring()Tree.KindgetKind()Set<Symbol>globalVariables()StatementListstatements()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
FileInputImpl
public FileInputImpl(@Nullable StatementList statements, Token endOfFile, @Nullable StringLiteral docstring)
-
-
Method Detail
-
statements
@CheckForNull public StatementList statements()
- Specified by:
statementsin interfaceFileInput
-
docstring
@CheckForNull public StringLiteral docstring()
-
globalVariables
public Set<Symbol> globalVariables()
- Specified by:
globalVariablesin interfaceFileInput
-
addGlobalVariables
public void addGlobalVariables(Symbol globalVariable)
-
accept
public void accept(TreeVisitor visitor)
-
-