Interface InlineHTMLTree

All Superinterfaces:
StatementTree, Tree
All Known Implementing Classes:
InlineHTMLTreeImpl

public interface InlineHTMLTree extends StatementTree
This interface presents HTML code embedded into php code.

NOTE! If you want consider all HTML code in the tree you should use SyntaxToken with kind Tree.Kind.INLINE_HTML_TOKEN.

In the following code both "?> </a> <?php" are presented as Tree.Kind.INLINE_HTML_TOKEN but in first line this token is part of assignment statement (ExpressionStatementTree.eosToken()).

   ... $a = 5 ?> </a> <?php ...   // "?> </a> <?php" is considered as end of assignment statement
   ... $a = 5; ?> </a> <?php ...   // ";" is considered as end of assignment statement and "?> </a> <?php" is considered as instance of InlineHTMLTree
 
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.sonar.plugins.php.api.tree.Tree

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from interface org.sonar.plugins.php.api.tree.Tree

    accept, getKind, getParent, is
  • Method Details