Top Description Methods
com.sun.source.tree

public Interface SynchronizedTree

extends StatementTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCSynchronized

A tree node for a synchronized statement. For example:
  synchronized ( expression )
      block
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.19 The synchronized Statement

Method Summary

Modifier and TypeMethod and Description
public BlockTree

Returns:

the block
getBlock
()

Returns the block of the synchronized statement.

public ExpressionTree

Returns:

the expression
getExpression
()

Returns the expression on which to synchronize.

Method Detail

getBlockback to summary
public BlockTree getBlock()

Returns the block of the synchronized statement.

Returns:BlockTree

the block

getExpressionback to summary
public ExpressionTree getExpression()

Returns the expression on which to synchronize.

Returns:ExpressionTree

the expression