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

public Interface AssignmentTree

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

A tree node for an assignment expression. For example:
  variable = expression
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
15.26.1 Simple Assignment Operator =

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the expression
getExpression
()

Returns the expression being assigned to the variable.

public ExpressionTree

Returns:

the variable
getVariable
()

Returns the variable being assigned to.

Method Detail

getExpressionback to summary
public ExpressionTree getExpression()

Returns the expression being assigned to the variable.

Returns:ExpressionTree

the expression

getVariableback to summary
public ExpressionTree getVariable()

Returns the variable being assigned to.

Returns:ExpressionTree

the variable