Class BinaryExpressionTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.expression.BinaryExpressionTreeImpl
-
- All Implemented Interfaces:
BinaryExpressionTree
,ExpressionTree
,Tree
public class BinaryExpressionTreeImpl extends PHPTree implements BinaryExpressionTree
-
-
Constructor Summary
Constructors Constructor Description BinaryExpressionTreeImpl(Tree.Kind kind, ExpressionTree leftOperand, InternalSyntaxToken operator, ExpressionTree rightOperand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(VisitorCheck visitor)
Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.Tree.Kind
getKind()
ExpressionTree
leftOperand()
SyntaxToken
operator()
ExpressionTree
rightOperand()
-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
BinaryExpressionTreeImpl
public BinaryExpressionTreeImpl(Tree.Kind kind, ExpressionTree leftOperand, InternalSyntaxToken operator, ExpressionTree rightOperand)
-
-
Method Detail
-
leftOperand
public ExpressionTree leftOperand()
- Specified by:
leftOperand
in interfaceBinaryExpressionTree
-
operator
public SyntaxToken operator()
- Specified by:
operator
in interfaceBinaryExpressionTree
-
rightOperand
public ExpressionTree rightOperand()
- Specified by:
rightOperand
in interfaceBinaryExpressionTree
-
childrenIterator
public Iterator<Tree> childrenIterator()
Description copied from class:PHPTree
Creates iterator for children of this node. Note that iterator may containnull
elements.- Specified by:
childrenIterator
in classPHPTree
-
accept
public void accept(VisitorCheck visitor)
-
-