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

public Interface UnaryTree

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

A tree node for postfix and unary expressions. Use getKind to determine the kind of operator. For example:
  operator expression

  expression operator
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
15.14 Postfix Expressions, 15.15 Unary Operators

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the expression
getExpression
()

Returns the expression that is the operand of the unary operator.

Method Detail

getExpressionback to summary
public ExpressionTree getExpression()

Returns the expression that is the operand of the unary operator.

Returns:ExpressionTree

the expression