Interface SynchronizedTree

All Superinterfaces:
StatementTree, Tree

public interface SynchronizedTree extends StatementTree
A tree node for a synchronized statement. For example:
  synchronized ( expression )
      block
See Java Language Specification:
14.19 The synchronized Statement
Since:
1.6
  • Nested Class Summary

    Nested classes/interfaces declared in interface Tree

    Tree.Kind
    Modifier and Type
    Interface
    Description
    static enum 
    Enumerates all kinds of trees.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the block of the synchronized statement.
    Returns the expression on which to synchronize.

    Methods declared in interface Tree

    accept, getKind
    Modifier and Type
    Method
    Description
    <R,D> R
    accept(TreeVisitor<R,D> visitor, D data)
    Accept method used to implement the visitor pattern.
    Returns the kind of this tree.
  • Method Details

    • getExpression

      ExpressionTree getExpression()
      Returns the expression on which to synchronize.
      Returns:
      the expression
    • getBlock

      BlockTree getBlock()
      Returns the block of the synchronized statement.
      Returns:
      the block