Package org.sonar.php.tree.impl
Class ScriptTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.ScriptTreeImpl
-
- All Implemented Interfaces:
ScriptTree,Tree
public class ScriptTreeImpl extends PHPTree implements ScriptTree
-
-
Constructor Summary
Constructors Constructor Description ScriptTreeImpl(InternalSyntaxToken fileOpeningTagToken, List<StatementTree> statements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(VisitorCheck visitor)Iterator<Tree>childrenIterator()Creates iterator for children of this node.SyntaxTokenfileOpeningTagToken()Tree.KindgetKind()List<StatementTree>statements()-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
ScriptTreeImpl
public ScriptTreeImpl(InternalSyntaxToken fileOpeningTagToken, List<StatementTree> statements)
-
-
Method Detail
-
childrenIterator
public Iterator<Tree> childrenIterator()
Description copied from class:PHPTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classPHPTree
-
fileOpeningTagToken
public SyntaxToken fileOpeningTagToken()
- Specified by:
fileOpeningTagTokenin interfaceScriptTree
-
statements
public List<StatementTree> statements()
- Specified by:
statementsin interfaceScriptTree
-
accept
public void accept(VisitorCheck visitor)
-
-