- All Superinterfaces:
ExpressionTree,Tree
public interface BinaryTree extends ExpressionTree
A tree node for a binary expression.
Use
getKind to determine the kind of operator.
For example:
leftOperand operator rightOperand
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description ExpressionTreegetLeftOperand()Returns the left (first) operand of the expression.ExpressionTreegetRightOperand()Returns the right (second) operand of the expression.
-
Method Details
-
getLeftOperand
ExpressionTree getLeftOperand()Returns the left (first) operand of the expression.- Returns:
- the left operand
-
getRightOperand
ExpressionTree getRightOperand()Returns the right (second) operand of the expression.- Returns:
- the right operand
-