APIdia Launch Partner
Top Description Methods
com.sun.source.tree

public Interface BinaryTree

extends ExpressionTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCBinary

A tree node for a binary expression. Use getKind to determine the kind of operator. For example:
  leftOperand operator rightOperand
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
15.17 Multiplicative Operators, 15.18 Additive Operators, 15.19 Shift Operators, 15.20 Relational Operators, 15.21 Equality Operators, 15.22 Bitwise and Logical Operators, 15.23 Conditional-And Operator &&, 15.24 Conditional-Or Operator ||

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the left operand
getLeftOperand
()

Returns the left (first) operand of the expression.

public ExpressionTree

Returns:

the right operand
getRightOperand
()

Returns the right (second) operand of the expression.

Method Detail

getLeftOperandback to summary
public ExpressionTree getLeftOperand()

Returns the left (first) operand of the expression.

Returns:ExpressionTree

the left operand

getRightOperandback to summary
public ExpressionTree getRightOperand()

Returns the right (second) operand of the expression.

Returns:ExpressionTree

the right operand