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

public Interface CompoundAssignmentTree

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

A tree node for compound assignment operator. Use getKind to determine the kind of operator. For example:
  variable operator expression
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
15.26.2 Compound Assignment Operators

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the expression
getExpression
()

Returns the expression on the right hand side of the compound assignment.

public ExpressionTree

Returns:

the variable
getVariable
()

Returns the variable on the left hand side of the compound assignment.

Method Detail

getExpressionback to summary
public ExpressionTree getExpression()

Returns the expression on the right hand side of the compound assignment.

Returns:ExpressionTree

the expression

getVariableback to summary
public ExpressionTree getVariable()

Returns the variable on the left hand side of the compound assignment.

Returns:ExpressionTree

the variable