Top Description Methods
com.sun.source.tree

public Interface ParenthesizedTree

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

A tree node for a parenthesized expression.

Note

parentheses not be preserved by the parser. For example:

  ( expression )
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
15.8.5 Parenthesized Expressions

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the expression
getExpression
()

Returns the expression within the parentheses.

Method Detail

getExpressionback to summary
public ExpressionTree getExpression()

Returns the expression within the parentheses.

Returns:ExpressionTree

the expression